diff --git a/client/client/src/descriptor/index.js b/client/client/src/descriptor/index.js index 640ea4d0e..d33bb5bcd 100644 --- a/client/client/src/descriptor/index.js +++ b/client/client/src/descriptor/index.js @@ -12,7 +12,7 @@ export const COMPONENT = { var self = this; $scope.$watch('descriptor.client.active', function(newValue, oldValue) { if (oldValue !== undefined) - $http.put(`/client/api/Clients/${self.client.id}/activate`, {}); + $http.put(`/client/api/Clients/${self.client.id}/activate`); }); } }; diff --git a/client/core/src/lib/modified.js b/client/core/src/lib/modified.js index c99ac4c8b..9ce1d9429 100644 --- a/client/core/src/lib/modified.js +++ b/client/core/src/lib/modified.js @@ -7,17 +7,14 @@ export default function getModifiedData(object, objectOld) { var val = object[k]; var valOld = objectOld[k]; - if (val instanceof Object) { - if (!isEqual(val, valOld)) { + if (!isEqual(val, valOld)) { + if (val instanceof Object) { newObject[k] = getModifiedData(val, valOld); } + else { + newObject[k] = val; + } } - else if (val instanceof Array && val.length !== valOld.length) { - newObject[k] = val; - } - else if (val !== valOld) { - newObject[k] = val; - } } return newObject; diff --git a/client/core/src/textfield/textfield.mdl.html b/client/core/src/textfield/textfield.mdl.html index f88b59949..c423a596c 100644 --- a/client/core/src/textfield/textfield.mdl.html +++ b/client/core/src/textfield/textfield.mdl.html @@ -10,7 +10,7 @@ ng-blur="onBlurInput($event)" />