From c38ac70fe0212e878bacabfc57cef026c6451010 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 4 Aug 2015 08:58:09 +0200 Subject: [PATCH] get_standard_option: do not overwrite defaults when they evaluate to false --- src/PVE/JSONSchema.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index d9d254a..2837cf5 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -42,7 +42,7 @@ sub get_standard_option { my $res = $base || {}; foreach my $opt (keys %$std) { - next if $res->{$opt}; + next if defined($res->{$opt}); $res->{$opt} = $std->{$opt}; } -- 2.39.2