Need to clone the object before removing $-prefixed variables. Otherwise we are modifying the same data as the views are using

This commit is contained in:
Bjarke Berg
2019-02-11 11:54:51 +01:00
parent e35436225f
commit e08a7c3ea8

View File

@@ -26,7 +26,9 @@
//dealing with requests:
'request': function(config) {
if(config.method === "POST"){
transform(config.data);
var clone = angular.copy(config);
transform(clone.data);
return clone;
}
return config;