Commit ce6e22f9 authored by Roque's avatar Roque

erp5_web_project_ui: refactor on jio query

parent 698182cc
...@@ -121,7 +121,6 @@ ...@@ -121,7 +121,6 @@
query_list = [], query_list = [],
id_query_list = [], id_query_list = [],
validation_state_query_list = [], validation_state_query_list = [],
valid_state_list = ["shared_alive", "released_alive", "published_alive"],
web_page; web_page;
query_list.push(new SimpleQuery({ query_list.push(new SimpleQuery({
key: "portal_type", key: "portal_type",
...@@ -129,18 +128,12 @@ ...@@ -129,18 +128,12 @@
type: "simple", type: "simple",
value: "Web Page" value: "Web Page"
})); }));
for (i = 0; i < valid_state_list.length; i += 1) { query_list.push(new SimpleQuery({
validation_state_query_list.push(new SimpleQuery({ key: "validation_state",
key: "validation_state", operator: "=",
type: "simple", type: "simple",
operator: "=", value: ("shared", "released", "published", "shared_alive",
value: valid_state_list[i] "released_alive", "published_alive")
}));
}
query_list.push(new ComplexQuery({
operator: "OR",
query_list: validation_state_query_list,
type: "complex"
})); }));
query_list.push(new SimpleQuery({ query_list.push(new SimpleQuery({
key: "follow_up__relative_url", key: "follow_up__relative_url",
......
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