Revert fix to umbrequesthelper.service it was NEVER meant to be able to receive an array of a single dictionary item - actual fix is to change logResource to not pass params in this way

This commit is contained in:
Marc Goodson
2017-06-02 21:04:12 +01:00
parent 079df4a8b7
commit cf3343749f

View File

@@ -47,17 +47,15 @@ function umbRequestHelper($http, $q, umbDataFormatter, angularHelper, dialogServ
return _.map(queryStrings, function (item) {
var key = null;
var val = null;
var encodedQueryStrings = [];
// can be multiple parameters passed via array
for (var k in item) {
key = k;
val = item[k];
encodedQueryStrings.push(encodeURIComponent(key) + "=" + encodeURIComponent(val));
}
break;
}
if (key === null || val === null) {
throw "The object in the array was not formatted as a key/value pair";
}
return encodedQueryStrings.join("&");
}
return encodeURIComponent(key) + "=" + encodeURIComponent(val);
}).join("&");
}
else if (angular.isObject(queryStrings)) {