Commit 95fc894e authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: do not crash if user can not view its own person document

parent 91caeead
...@@ -50,6 +50,8 @@ ...@@ -50,6 +50,8 @@
// Calculate user name // Calculate user name
if (result === undefined) { if (result === undefined) {
user = null; user = null;
} else if (result.data.rows.length === 0) {
user = null;
} else { } else {
user = result.data.rows[0].value.title; user = result.data.rows[0].value.title;
} }
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>994.61067.37482.40516</string> </value> <value> <string>998.18207.59213.64375</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1632221584.7</float> <float>1667992189.61</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