From: jeff Date: Mon, 5 Oct 2009 15:07:40 +0000 (+0000) Subject: remove unused option that DTWT X-Git-Tag: freeside_1_9_1^2~32 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=0ab5a147a0013e54b42390db0b0ca176b008b40f;p=freeside.git remove unused option that DTWT --- diff --git a/httemplate/elements/tr-select-pkg_class.html b/httemplate/elements/tr-select-pkg_class.html index aa2760996..1c04314ed 100644 --- a/httemplate/elements/tr-select-pkg_class.html +++ b/httemplate/elements/tr-select-pkg_class.html @@ -1,4 +1,4 @@ -% if ( scalar(@{ $opt{'pkg_class'} }) == 0 ) { +% if ( $count == 0 ) { @@ -22,6 +22,6 @@ my %opt = @_; my $classnum = $opt{'curr_value'} || $opt{'value'}; -$opt{'pkg_class'} ||= [ qsearch( 'pkg_class', {} ) ]; # { disabled=>'' } ) +my $count = scalar( qsearch( 'pkg_class', {} ) );