summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-part_pkg.html
diff options
context:
space:
mode:
authorivan <ivan>2010-04-21 08:57:12 +0000
committerivan <ivan>2010-04-21 08:57:12 +0000
commitc2839632f9a4d7edff3f40686ffa8cb01b0b9148 (patch)
tree0fe8973c9c2893e2a6ec14f7c7a772abae2f5a06 /httemplate/elements/select-part_pkg.html
parente5aef8203d5e01873246eeecf67f3c214ea79220 (diff)
prevent inadvertantly losing disabled package defs, service defs or package classes in a config value that uses them (i.e. support_packages)
Diffstat (limited to 'httemplate/elements/select-part_pkg.html')
-rw-r--r--httemplate/elements/select-part_pkg.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/elements/select-part_pkg.html b/httemplate/elements/select-part_pkg.html
index e11f02038..2127d9ab0 100644
--- a/httemplate/elements/select-part_pkg.html
+++ b/httemplate/elements/select-part_pkg.html
@@ -34,7 +34,8 @@ my( %opt ) = @_;
$opt{'records'} = delete $opt{'part_pkg'}
if $opt{'part_pkg'};
-my %hash = ( 'disabled' => '' );
+my %hash = ();
+$hash{'disabled'} = '' unless $opt{'showdisabled'};
if ( exists($opt{'classnum'}) && defined($opt{'classnum'}) ) {
if ( $opt{'classnum'} > 0 ) {