Fix for incorrect key sent back for dynamic non sorted items #18650
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.
As described in the below linked BZ, there was an issue when verifying the original fix which can be found here on the ui-components repo.
Basically, for dynamic dialogs, we were returning the dynamically computed result in a key called
"values"
. But, this does not really make sense for text boxes, check boxes, or date/times because those fields can only have one value, not a list of values. So, this PR changes that so that we can still continue to useng-model=vm.dialogField.default_value
which makes the most sense while also passing through the correctly computeddefault_value
from the automate side for those various types of dialog fields.This will also need this other ui-components PR to revert the
ng-model
changes made in 381.Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1696474
/cc @tinaafitz @d-m-u @himdel @gmcculloug