Commit 86c0fafc authored by Romain Courteaud's avatar Romain Courteaud :octopus: Committed by Kazuhiko Shiozaki
Browse files

erp5_core: a boolean value is not considered as empty

parent 918e7f75
No related merge requests found
......@@ -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