summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-pkg_class.html
diff options
context:
space:
mode:
authorjeff <jeff>2009-10-05 15:07:40 +0000
committerjeff <jeff>2009-10-05 15:07:40 +0000
commit0ab5a147a0013e54b42390db0b0ca176b008b40f (patch)
treecee6dd0e2fcb91a5e414755b78d973fcfece5ad3 /httemplate/elements/tr-select-pkg_class.html
parentcf86f3223d1e30853f52c0f5a7a6331f27aed9cb (diff)
remove unused option that DTWT
Diffstat (limited to 'httemplate/elements/tr-select-pkg_class.html')
-rw-r--r--httemplate/elements/tr-select-pkg_class.html4
1 files changed, 2 insertions, 2 deletions
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 ) {
<INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'classnum' %>" VALUE="">
@@ -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', {} ) );
</%init>