summaryrefslogtreecommitdiffstats
path: root/drakwizard.pl
diff options
context:
space:
mode:
Diffstat (limited to 'drakwizard.pl')
-rwxr-xr-xdrakwizard.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/drakwizard.pl b/drakwizard.pl
index 5d15cd50..c21795cf 100755
--- a/drakwizard.pl
+++ b/drakwizard.pl
@@ -362,8 +362,10 @@ sub is_disabled_summary {
if ($page_val eq $widget) {
foreach (@{$page->{freetext}}) {
my ($val, $arg) = split(/\s*?=\s*/, $_->{is}) if ($_->{is});
- $disabled{$_->{variableName}} = defined $arg ? $ENV{$variable{$val}} != $arg : !$ENV{$variable{$val}};
$disabled{$_->{variableName}} = defined $page_arg ? ($ENV{$variable{$page_val}} != $page_arg) : !$ENV{$variable{$page_val}};
+ if ($_->{is} && !$disabled{$_->{variableName}}) {
+ $disabled{$_->{variableName}} = defined $arg ? $ENV{$variable{$val}} != $arg : !$ENV{$variable{$val}};
+ }
}
}
}