Commit 021df785 by Romain Courteaud

[erp5_web_renderjs_ui] Field do not always have a getContent method

1 parent bfd06301
......@@ -94,7 +94,10 @@
var argument_list = arguments;
return this.getDeclaredGadget(SCOPE)
.push(function (gadget) {
return gadget.getContent.apply(gadget, argument_list);
if (gadget.getContent !== undefined) {
return gadget.getContent.apply(gadget, argument_list);
}
return {};
});
})
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>954.25941.22930.26914</string> </value>
<value> <string>954.44486.54507.19541</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1476194017.94</float>
<float>1476793988.08</float>
<string>UTC</string>
</tuple>
</state>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!