Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Requests to "undefined.infinity.json" in touchui-composite-multifield.js #3377

Open
v-five opened this issue Jul 8, 2024 · 0 comments

Comments

@v-five
Copy link

v-five commented Jul 8, 2024

ACS AEM Commons Version: from 4.4.0 to 6.6.2 (latest)
Reproducible on Latest? yes

Actual Behavior

// touchui-composite-multifield.js

addDataInFields: function () {
    var actionUrl = $form.attr("action") + ".infinity.json";

    if (_.isUndefined(actionUrl)) {
        return;
    }

    $.ajax(actionUrl).done(postProcess);
}

Expected Behavior

Check the $form.attr("action") for undefined before the concatenation to avoid requests to "undefined.infinity.json", making the if (_.isUndefined(actionUrl)) check effective.

Steps to Reproduce

View the relevant code on GitHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant