Commit 89fb4ab1 authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: checkboxfield: handle 'checked' default value

parent e0ad9b7c
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
var field_json = options.field_json || {}, var field_json = options.field_json || {},
state_dict, state_dict,
value; value;
if (field_json.default === 'on') { if (typeof field_json.default === "string") {
value = 1; value = !(field_json.default === '');
} else { } else {
value = field_json.default; value = field_json.default;
} }
......
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