Commit 3f017d74 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] RelationField: do not crash if one document is not found in catalog

parent 2cfd9162
......@@ -185,9 +185,14 @@
"select_list": [catalog_index]
})
.push(function (result) {
if (!result.data.total_rows) {
// Uid was not found.
// Do not change the display
return;
}
return gadget.changeState({
value_text: result.data.rows[0]
.value[catalog_index]
.value[catalog_index]
});
})
.push(function () {
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>977.6117.6830.21572</string> </value>
<value> <string>978.15497.3144.35652</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1563260997.53</float>
<float>1567695948.47</float>
<string>UTC</string>
</tuple>
</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