Commit ec089e42 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] History page should not crash when user history is empty

parent ac73aaaa
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
CACHE MANIFEST\n CACHE MANIFEST\n
# generated on Fri, 24 Nov 2015 15:30:00 +0000\n # generated on Fri, 25 Nov 2015 10:00:00 +0000\n
# XXX + fonts\n # XXX + fonts\n
# images/ajax-loader.gif\n # images/ajax-loader.gif\n
CACHE:\n CACHE:\n
...@@ -340,7 +340,7 @@ NETWORK:\n ...@@ -340,7 +340,7 @@ NETWORK:\n
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>947.21012.61053.6656</string> </value> <value> <string>947.22112.7095.5768</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -358,7 +358,7 @@ NETWORK:\n ...@@ -358,7 +358,7 @@ NETWORK:\n
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1448376312.77</float> <float>1448442318.38</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -157,6 +157,13 @@ ...@@ -157,6 +157,13 @@
for (i = 0; i < id_list.length; i += 1) {\n for (i = 0; i < id_list.length; i += 1) {\n
query_list.push(new SimpleQuery({key: \'relative_url\', value: id_list[i]}));\n query_list.push(new SimpleQuery({key: \'relative_url\', value: id_list[i]}));\n
}\n }\n
if (i === 0) {\n
return {\n
data: {\n
rows: []\n
}\n
};\n
}\n
return gadget.jio_allDocs({\n return gadget.jio_allDocs({\n
query: objectToSearchText(new ComplexQuery({operator: \'OR\', query_list: query_list})),\n query: objectToSearchText(new ComplexQuery({operator: \'OR\', query_list: query_list})),\n
select_list: ["title", "portal_type"],\n select_list: ["title", "portal_type"],\n
...@@ -342,7 +349,7 @@ ...@@ -342,7 +349,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>947.772.27087.52821</string> </value> <value> <string>947.22112.65196.42461</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -360,7 +367,7 @@ ...@@ -360,7 +367,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1447161932.1</float> <float>1448442387.23</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