Commit 83022970 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Listbox: post selection name

parent 384455db
...@@ -482,6 +482,7 @@ ...@@ -482,6 +482,7 @@
// sorting is either specified in URL per listbox or we take default sorting from JSON's 'sort' attribute // sorting is either specified in URL per listbox or we take default sorting from JSON's 'sort' attribute
sort_list_json: JSON.stringify(result_list[1] || field_json.sort.map(jioize_sort)), sort_list_json: JSON.stringify(result_list[1] || field_json.sort.map(jioize_sort)),
selection_name: field_json.selection_name,
show_anchor: field_json.show_anchor, show_anchor: field_json.show_anchor,
show_stat: field_json.show_stat, show_stat: field_json.show_stat,
show_count: field_json.show_count, show_count: field_json.show_count,
...@@ -1270,6 +1271,11 @@ ...@@ -1270,6 +1271,11 @@
data['uids:list'] = checked_uid_list; data['uids:list'] = checked_uid_list;
} }
if (form_gadget.state.selection_name !== undefined) {
// ERP5 expect to receive the selection name from hidden fields
data.list_selection_name = form_gadget.state.selection_name;
}
if (form_gadget.props.listbox_query_param_json !== undefined) { if (form_gadget.props.listbox_query_param_json !== undefined) {
// JSON query parameters are only sent when rendering an ERP5 Form // JSON query parameters are only sent when rendering an ERP5 Form
data[form_gadget.props.listbox_query_param_json.key] = data[form_gadget.props.listbox_query_param_json.key] =
......
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>979.27738.39874.9932</string> </value> <value> <string>979.21897.21030.48025</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1572276942.85</float> <float>1572276156.44</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