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.
This is an attempt to Fix #3418
The bug is as follows:
Not null constraint on multi-select value relations is not met when selecting values,
but works OK as long as a single value is deselected.
If there is no not null constraint, the log looks like this when clicking confirm selection :
When the not null constraint is set, there appears a binding loop :
And if a second value is checked and then immediately unchecked, it works correctly and the log is:
When unchecking a value, the array containing the selected ids is copied
which apparently fixes the issue...
So creating a copy of the array when adding values too brings us the expected behavior!
This is fixing the symptom instead of the cause, so @tomasMizera I think I need your wisdom!