fix bug: [SDC-2275]Service properties - issue on save multiple properties 65/86965/1
authormiriame <miriam.eini@amdocs.com>
Sun, 5 May 2019 08:28:34 +0000 (11:28 +0300)
committermiriame <miriam.eini@amdocs.com>
Sun, 5 May 2019 08:31:38 +0000 (11:31 +0300)
 Issue-ID: SDC-2275

Change-Id: If9e44517727547dbf2bd28ecbaa96be6114bd848
Signed-off-by: miriame <miriam.eini@amdocs.com>
catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts

index 037b7f4..38278c9 100644 (file)
@@ -532,7 +532,8 @@ export class PropertiesAssignmentComponent {
                         handleSuccess = (response) => {
                             // reset each changed property with new value and remove it from changed properties list
                             response.forEach((resProp) => {
-                                const changedProp = <PropertyFEModel>this.changedData.shift();
+                                const changedProp = <PropertyFEModel>_.find(this.changedData, changedDataObject => changedDataObject.uniqueId === resProp.uniqueId);
+                                this.changedData = _.filter(this.changedData, changedDataObject => changedDataObject.uniqueId !== resProp.uniqueId);
                                 this.propertiesUtils.resetPropertyValue(changedProp, resProp.value);
                             });
                             resolve(response);