Commit a47b421b authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: a boolean value is not considered as empty

parent c76c3d66
......@@ -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