Commit 7108bc88 authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: a boolean value is not considered as empty

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