Commit 1aca719e authored by Jérome Perrin's avatar Jérome Perrin

Fix dialog when displaying properties that evaluates as false

parent e12608e8
......@@ -47,7 +47,8 @@
var choice = property.choice || [],
default_opt = choice[0] ? [choice[0][1]] : [""];
sub_gadget = gg;
value = data[property.id] || value;
value = (data[property.id] === undefined ?
value : data[property.id]);
return sub_gadget.render({field_json: {
title: (property.description || ''),
key: property.id,
......
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