NIFI-11247: Using parameterContextName instead of group name when fetching parameters (#7011)

Merged #7011.

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>
This commit is contained in:
Joe Gresock 2023-03-06 13:48:41 -05:00 committed by Pierre Villard
parent 81aa752265
commit a6687ae71a
No known key found for this signature in database
GPG Key ID: F92A93B30C07C6D5
1 changed files with 4 additions and 2 deletions

View File

@ -910,9 +910,11 @@
if (!_.isEmpty(parameterProviderGroupEntity.component.parameterStatus)) {
$.each(parameterProviderGroupEntity.component.parameterStatus, function (i, status) {
if (status.status !== 'UNCHANGED') {
var group = groupsData.getItems().find(function (group) { return group.name === status.parameter.parameter.parameterContext.component.name });
var group = groupsData.getItems().find(function (group) { return group.parameterContextName === status.parameter.parameter.parameterContext.component.name });
loadSelectableParameters(group.parameterSensitivities, group, true);
if (nfCommon.isDefinedAndNotNull(group)) {
loadSelectableParameters(group.parameterSensitivities, group, true);
}
$('#fetch-parameters-dialog').modal('refreshButtons');
}
})