[FW][FIX] website, website_hr_recruitment: action should not be undefined #163043
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Step to reproduce:
Purpose:
Since the implementation of commit 1, our system employs alerts resembling
this field 'partner_name' is mandatory for the action 'actionName'
. However, this alteration has led to a bug where in certain forms exhibit an undefined action name value, particularly evident when users attempt to modify specific forms containing required fields. The bug manifests when an alert is triggered, and the action name becomes undefined due to the conditionthis.modelCantChange
evaluating totrue
within thewillStart
function. Consequently, invoking_super
results in the return ofwillStart
without assigning a value tocurrentActionName
.After this commit:
Now, before returning the function, it sets a value for
currentActionName
and then proceeds with the necessary steps. This prevents the issue where an action wasundefined
.task-3680483
Forward-Port-Of: #162468
Forward-Port-Of: #157501