Commit a9e8dcf2 authored by Xavier Guimard's avatar Xavier Guimard

Don't store 'false' values in default

parent bbb4bd6d
......@@ -509,7 +509,9 @@ sub scanTree {
$jleaf->{$w} = $attr->{$w} if ( defined $attr->{$w} );
}
if ( defined $jleaf->{default} ) {
$defaultValues->{$leaf} = $jleaf->{default};
unless ( $attr->{type} eq 'bool' and $jleaf->{default} == 0 ) {
$defaultValues->{$leaf} = $jleaf->{default};
}
if ( ref( $jleaf->{default} ) ) {
$jleaf->{default} = [];
my $type = $attr->{type};
......
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