From c2839632f9a4d7edff3f40686ffa8cb01b0b9148 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 21 Apr 2010 08:57:12 +0000 Subject: [PATCH] prevent inadvertantly losing disabled package defs, service defs or package classes in a config value that uses them (i.e. support_packages) --- httemplate/elements/select-part_pkg.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) { -- 2.11.0