[freeside-commits] freeside/httemplate/elements select-pkg_class.html, 1.5, 1.6
Ivan,,,
ivan at wavetail.420.am
Tue May 25 05:14:34 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv2002
Modified Files:
select-pkg_class.html
Log Message:
add showdisabled option
Index: select-pkg_class.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/select-pkg_class.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -w -d -r1.5 -r1.6
--- select-pkg_class.html 1 Aug 2007 22:25:09 -0000 1.5
+++ select-pkg_class.html 25 May 2010 12:14:24 -0000 1.6
@@ -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'};
More information about the freeside-commits
mailing list