Commit 3b9ea1dd by pratik pandey Committed by nixonrodrigues

ATLAS-2222 : UI, Search using entity and trait attributes - , in string…

ATLAS-2222 : UI, Search using entity and trait attributes - , in string attribute filter throws 400 Bad request Signed-off-by: 's avatarnixonrodrigues <nixon@apache.org>
parent 1869aee3
......@@ -552,7 +552,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
attrQuery.push(url.join("::"));
});
if (attrQuery.length) {
return attrQuery.join();
return attrQuery.join(":,:");
} else {
return null;
}
......@@ -586,7 +586,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
extractUrl: function(urlObj) {
var attrObj = [];
if (urlObj && urlObj.length) {
_.each(urlObj.split(","), function(obj) {
_.each(urlObj.split(":,:"), function(obj) {
var temp = obj.split("::");
var finalObj = { id: temp[0], operator: temp[1], value: _.trim(temp[2]) }
if (temp[3]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment