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

fix finding form button to lock #14646

Conversation

btry
Copy link
Contributor

@btry btry commented May 3, 2023

Logic error when searching for form button to lock.

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets none

@btry btry requested review from cedric-anne, orthagh and cconard96 May 3, 2023 09:18
@@ -1414,7 +1414,7 @@ function blockFormSubmit(form, e) {

// if submitter is not a button, find the first submit button with add or update as the name
if (submitter === null || !submitter.is('button')) {
submitter = submitter.find('button[name="add"]:first, button[name="update"]:first');
submitter = form.find('button[name="add"]:first, button[name="update"]:first');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if submitter is null, as stated in the enclosing if () assertion, then this line fails.

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

Successfully merging this pull request may close these issues.

4 participants