Commit 6583ec7b authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Field do not always have a getContent method

parent 09fe6b16
......@@ -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>
......
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