Commit 021df785 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Field do not always have a getContent method

parent bfd06301
...@@ -94,7 +94,10 @@ ...@@ -94,7 +94,10 @@
var argument_list = arguments; var argument_list = arguments;
return this.getDeclaredGadget(SCOPE) return this.getDeclaredGadget(SCOPE)
.push(function (gadget) { .push(function (gadget) {
if (gadget.getContent !== undefined) {
return gadget.getContent.apply(gadget, argument_list); return gadget.getContent.apply(gadget, argument_list);
}
return {};
}); });
}) })
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>954.25941.22930.26914</string> </value> <value> <string>954.44486.54507.19541</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>1476194017.94</float> <float>1476793988.08</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