Commit 6c4f7600 authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: handle non editable parallellistfields

parent 4fbd2845
......@@ -21,6 +21,7 @@
state_dict = {
field_list: field_json.subfield_list,
previous_field_length: this.state.field_list.length,
editable: field_json.editable,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
......@@ -59,8 +60,8 @@
var sub_state;
promise_list = [];
for (i = 0; i < gadget.state.field_list.length; i += 1) {
sub_state = gadget.state.field_list[i];
sub_state = JSON.parse(JSON.stringify(gadget.state.field_list[i]));
sub_state.editable = gadget.state.editable;
promise_list.push(gadget_list[i].render({
field_json: sub_state,
field_type: sub_state.field_type
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>989.18529.59782.32597</string> </value>
<value> <string>989.18530.35220.41369</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1610440472.18</float>
<float>1610440711.42</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