summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorivan <ivan>2010-04-21 08:57:13 +0000
committerivan <ivan>2010-04-21 08:57:13 +0000
commitb055dfc55a375da5940a70b945c0628df70724a2 (patch)
treea301692f5301918b8c32915b35e6c05275eefc9f /httemplate/elements
parentc325da0d017dad790d3aac113cb70c65eb290b6a (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')
-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 6b697abdf..71066eb9f 100644
--- a/httemplate/elements/select-part_pkg.html
+++ b/httemplate/elements/select-part_pkg.html
@@ -33,7 +33,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 ) {