diff options
author | Arnaud Desmons <adesmons@mandriva.com> | 2002-10-11 08:10:27 +0000 |
---|---|---|
committer | Arnaud Desmons <adesmons@mandriva.com> | 2002-10-11 08:10:27 +0000 |
commit | 159573cc629f3a70fe414958dddf1fc12ff74b67 (patch) | |
tree | d638df6283f621a95ae836d2653c2390086d3e19 | |
parent | 563e68df0b1d70c2b139364383ea3cd34dc9e39e (diff) | |
download | drakwizard-159573cc629f3a70fe414958dddf1fc12ff74b67.tar drakwizard-159573cc629f3a70fe414958dddf1fc12ff74b67.tar.gz drakwizard-159573cc629f3a70fe414958dddf1fc12ff74b67.tar.bz2 drakwizard-159573cc629f3a70fe414958dddf1fc12ff74b67.tar.xz drakwizard-159573cc629f3a70fe414958dddf1fc12ff74b67.zip |
bool fillfunc enable/disable
-rwxr-xr-x | drakwizard.pl | 4 |
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}}; + } } } } |