Commit 023ef71d authored by Roque's avatar Roque

erp5_officejs: fix editable blob content property in form view

parent 6d76557c
......@@ -235,9 +235,15 @@
.onStateChange(function onStateChange() {
var fragment = document.createElement('div'),
gadget = this,
content_editable = gadget.state.content_editable,
form_json;
if (content_editable === undefined) {
content_editable = gadget.state.form_definition
.portal_type_dict.editable;
}
form_json = renderForm(gadget.state.form_definition, gadget.state.doc,
gadget.state.data, gadget.state.blob_type,
gadget.state.content_editable);
content_editable);
while (gadget.element.firstChild) {
gadget.element.removeChild(gadget.element.firstChild);
}
......
......@@ -269,7 +269,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>978.62776.6299.22715</string> </value>
<value> <string>978.63200.57160.23330</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -287,7 +287,7 @@
</tuple>
<state>
<tuple>
<float>1570446513.79</float>
<float>1570471806.0</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