-
Notifications
You must be signed in to change notification settings - Fork 985
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
Fixed issue #18543: Question Type "Array (texts)" crashes when in combination with "array filter", "Array filter style": disabled and "show totals" #2793
Fixed issue #18543: Question Type "Array (texts)" crashes when in combination with "array filter", "Array filter style": disabled and "show totals" #2793
Conversation
…bination with "array filter", "Array filter style": disabled and "show totals"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check with .answer-item input
selector ?
…bination with "array filter", "Array filter style": disabled and "show totals"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Not tested : think must test array_filter with multiple choice, ranking etc …
Seems test broken with multiple and radio input stay disabled |
because
|
…bination with "array filter", "Array filter style": disabled and "show totals"
What do you think now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review done,
To be tested again
Firefox, asset resetted (i validate it's this file) : recursion again :( |
…bination with "array filter", "Array filter style": disabled and "show totals" - Update minified script
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Argl debug=0 issue ? |
OK ! |
OK, the issue was the minified file was missing. |
debug=0 issue … didn't happen if debug set … ouf … |
works for me as well! |
There were two problems:
Under normal conditions, the only one disabled is the total, but when you use "Array Filter Style" = "disabled" there are more fields disabled, which created confusions.
It also created loops.
After the total field is updated, some events are triggered and the checkconditions is executed again.
When that was triggered for the "disabled" filtered fields, it created a loop.
The ticket error was caused by point 1, but without fixing point 2 it would still look bad, so I fixed both.