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