X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-pkg_class.html;h=f30259e55d4336983968c2e9c5120585017b6e0d;hb=43e42a04ae37ca7a84c05d9ff8b94d9f8cde6dcf;hp=032c7abda9bba558a17ac462fc0064704e26ae60;hpb=e65c6a26ca778166aec2b2d1dd3012ab84fa611a;p=freeside.git diff --git a/httemplate/elements/select-pkg_class.html b/httemplate/elements/select-pkg_class.html index 032c7abda..f30259e55 100644 --- a/httemplate/elements/select-pkg_class.html +++ b/httemplate/elements/select-pkg_class.html @@ -1,17 +1,18 @@ -<% - my( $classnum, %opt ) = @_; - - $opt{'records'} = delete $opt{'pkg_class'} - if $opt{'pkg_class'}; - - #warn "***** select-pkg-class: \n". Dumper(%opt); - -%><%= include( '/elements/select-table.html', +<% include( '/elements/select-table.html', 'table' => 'pkg_class', 'name_col' => 'classname', 'value' => $classnum, 'empty_label' => '(none)', - #'hashref' => { 'disabled' => '' }, + 'hashref' => { 'disabled' => '' }, %opt, ) %> +<%init> + +my %opt = @_; +my $classnum = $opt{'curr_value'} || $opt{'value'}; + +$opt{'records'} = delete $opt{'pkg_class'} + if $opt{'pkg_class'}; + +