Commit 65d4c17f authored by Roque's avatar Roque

erp5_web_renderjs_ui: minor control for listbox definition

parent 699555fd
...@@ -444,6 +444,9 @@ ...@@ -444,6 +444,9 @@
if (displayed_column_item_list.length === 0) { if (displayed_column_item_list.length === 0) {
displayed_column_item_list = field_json.column_list; displayed_column_item_list = field_json.column_list;
} }
if (field_json.sort === undefined) {
field_json.sort = []
}
return gadget.changeState({ return gadget.changeState({
key: field_json.key, key: field_json.key,
...@@ -1181,7 +1184,6 @@ ...@@ -1181,7 +1184,6 @@
if (gadget.state.show_count === true) { if (gadget.state.show_count === true) {
aggregation_option_list.push("count"); aggregation_option_list.push("count");
} }
return gadget.jio_allDocs({ return gadget.jio_allDocs({
// XXX Not jIO compatible, but until a better api is found... // XXX Not jIO compatible, but until a better api is found...
"list_method_template": this.state.list_method_template, "list_method_template": this.state.list_method_template,
......
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