Commit 733430e9d19a6f6ed5dcca5d3749dbfb46a6ea86

Authored by Vladyslav_Prykhodko
Committed by Andrew Shvayka
1 parent f1bb232d

UI: Fixed bug multiple input widget: when activate settings update all values not save hidden keys

@@ -495,8 +495,8 @@ export class MultipleInputWidgetComponent extends PageComponent implements OnIni @@ -495,8 +495,8 @@ export class MultipleInputWidgetComponent extends PageComponent implements OnIni
495 const serverAttributes: AttributeData[] = []; 495 const serverAttributes: AttributeData[] = [];
496 const sharedAttributes: AttributeData[] = []; 496 const sharedAttributes: AttributeData[] = [];
497 const telemetry: AttributeData[] = []; 497 const telemetry: AttributeData[] = [];
498 - for (const key of this.visibleKeys(toSave)) {  
499 - const currentValue = this.multipleInputFormGroup.get(key.formId).value; 498 + for (const key of toSave.keys) {
  499 + const currentValue = key.settings.dataKeyHidden ? key.value : this.multipleInputFormGroup.get(key.formId).value;
500 if (!isEqual(currentValue, key.value) || this.settings.updateAllValues) { 500 if (!isEqual(currentValue, key.value) || this.settings.updateAllValues) {
501 const attribute: AttributeData = { 501 const attribute: AttributeData = {
502 key: key.name, 502 key: key.name,