Commit 86c0fafc authored by Romain Courteaud's avatar Romain Courteaud Committed by Kazuhiko Shiozaki

erp5_core: a boolean value is not considered as empty

parent 918e7f75
......@@ -14,7 +14,10 @@
(value === null) ||
((typeof value === "number") ?
isNaN(value) :
(Object.keys(value).length === 0)
((typeof value === "boolean") ?
false :
(Object.keys(value).length === 0)
)
)
);
}
......
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