Commit 573ecd88 authored by Roque's avatar Roque

erp5_officejs: fix issue on submit

parent c1a277b7
...@@ -255,9 +255,10 @@ ...@@ -255,9 +255,10 @@
var gadget = this, child_gadget, content_dict; var gadget = this, child_gadget, content_dict;
if (gadget.state.form_definition.portal_type_dict.custom_submit) { if (gadget.state.form_definition.portal_type_dict.custom_submit) {
return gadget.getDeclaredGadget('erp5_pt_gadget') return gadget.getDeclaredGadget('erp5_pt_gadget')
.push(function (result) { .push(function (child_gadget) {
child_gadget = result; if (child_gadget.state.editable)
return child_gadget.getContent(); return child_gadget.getContent();
return {};
}) })
.push(function (result) { .push(function (result) {
content_dict = result; content_dict = result;
......
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1019.37331.10633.54664</string> </value> <value> <string>1020.40692.19503.22357</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -278,7 +278,7 @@ ...@@ -278,7 +278,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1727373462.24</float> <float>1731420849.96</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