Commit 2f9dd8da authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web_renderjs_ui: don't build search text when have no search criterions

parent 3fcf6f68
...@@ -175,20 +175,21 @@ ...@@ -175,20 +175,21 @@
type: "simple",\n type: "simple",\n
value: value}));\n value: value}));\n
}\n }\n
if (simple_query_list.length > 0) {\n
complex_query = new ComplexQuery({\n
operator: operator,\n
query_list: simple_query_list,\n
type: "complex"\n
});\n
\n \n
complex_query = new ComplexQuery({\n query = Query.objectToSearchText(complex_query);\n
operator: operator,\n
query_list: simple_query_list,\n
type: "complex"\n
});\n
\n
query = Query.objectToSearchText(complex_query);\n
\n \n
gadget.props.jelement.panel("toggle");\n gadget.props.jelement.panel("toggle");\n
\n \n
return gadget.redirect({jio_key: options.jio_key, view: options.view,\n return gadget.redirect({jio_key: options.jio_key, view: options.view,\n
"extended_search": query, "sort_list": options.sort_list || "",\n "extended_search": query, "sort_list": options.sort_list || "",\n
"hide_item": options.hide_item || ""});\n "hide_item": options.hide_item || ""});\n
}\n
}\n }\n
\n \n
\n \n
...@@ -707,7 +708,7 @@ ...@@ -707,7 +708,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>945.59871.22998.37307</string> </value> <value> <string>945.60010.1085.56388</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -725,7 +726,7 @@ ...@@ -725,7 +726,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1442930119.85</float> <float>1442938284.06</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
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