Commit d2ae48ec authored by Georgios Dagkakis's avatar Georgios Dagkakis

erp5_web_renderjs_ui: Fix multicheckboxfield for the case one value is selected

parent ca5abb0d
...@@ -83,6 +83,9 @@ ...@@ -83,6 +83,9 @@
element.removeChild(element.firstChild); element.removeChild(element.firstChild);
} }
if (typeof value_list === 'string') {
value_list = [value_list];
}
for (i = 0; i < value_list.length; i += 1) { for (i = 0; i < value_list.length; i += 1) {
value_dict[value_list[i]] = null; value_dict[value_list[i]] = null;
} }
......
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