Commit a8e3456a authored by Tristan Cavelier's avatar Tristan Cavelier

complex_queries updated

parent 4c146466
......@@ -1202,8 +1202,8 @@ function objectToSearchText(query) {
return str_list.join(" ");
}
if (query.type === "simple") {
return query.id + (query.id ? ": " : "") + (query.operator || "=") + ' "' +
query.value + '"';
return (query.key ? query.key + ": " : "") +
(query.operator || "=") + ' "' + query.value + '"';
}
throw new TypeError("This object is not a query");
}
......
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