Commit 42491c4d authored by Roque's avatar Roque

erp5_officejs: fix issue on submit

See merge request !2016
parents c1a277b7 573ecd88
Pipeline #38039 failed with stage
in 0 seconds
......@@ -255,9 +255,10 @@
var gadget = this, child_gadget, content_dict;
if (gadget.state.form_definition.portal_type_dict.custom_submit) {
return gadget.getDeclaredGadget('erp5_pt_gadget')
.push(function (result) {
child_gadget = result;
.push(function (child_gadget) {
if (child_gadget.state.editable)
return child_gadget.getContent();
return {};
})
.push(function (result) {
content_dict = result;
......
......@@ -258,7 +258,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1019.37331.10633.54664</string> </value>
<value> <string>1020.40692.19503.22357</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -278,7 +278,7 @@
</tuple>
<state>
<tuple>
<float>1727373462.24</float>
<float>1731420849.96</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