Commit 13c55b02 authored by Boxiang Sun's avatar Boxiang Sun Committed by Tristan Cavelier

erp5_officejs_support_request_ui: Let the search bar only search the items...

erp5_officejs_support_request_ui: Let the search bar only search the items which type are 'Support Request'
parent 794b78a2
...@@ -252,7 +252,9 @@ ...@@ -252,7 +252,9 @@
page: "search" page: "search"
}; };
if (data.search) { if (data.search) {
options.extended_search = data.search; options.extended_search = '(' + data.search + ' AND portal_type: "Support Request")';
} else {
options.extended_search = '( portal_type: "Support Request")';
} }
// Remove focus from the search field // Remove focus from the search field
document.activeElement.blur(); document.activeElement.blur();
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>960.10532.37433.4932</string> </value> <value> <string>962.11273.61952.4147</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1497956198.88</float> <float>1505738150.86</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