X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-pkg_class.html;h=e47cfe48c90b4a7236f739e0e9df9a85017cc397;hb=d4114381c5d95e8acd0d0fc2bbc2b3528bde2ecf;hp=f30259e55d4336983968c2e9c5120585017b6e0d;hpb=5e05724a635a22776f1b973f5d7e77989da4e048;p=freeside.git diff --git a/httemplate/elements/select-pkg_class.html b/httemplate/elements/select-pkg_class.html index f30259e55..e47cfe48c 100644 --- a/httemplate/elements/select-pkg_class.html +++ b/httemplate/elements/select-pkg_class.html @@ -3,7 +3,7 @@ 'name_col' => 'classname', 'value' => $classnum, 'empty_label' => '(none)', - 'hashref' => { 'disabled' => '' }, + 'hashref' => \%hash, %opt, ) %> @@ -12,6 +12,10 @@ my %opt = @_; my $classnum = $opt{'curr_value'} || $opt{'value'}; +my %hash = (); +$hash{'disabled'} = '' unless $opt{'showdisabled'}; + + $opt{'records'} = delete $opt{'pkg_class'} if $opt{'pkg_class'};