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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user