X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-pkg_class.html;h=f30259e55d4336983968c2e9c5120585017b6e0d;hb=c2a0fd8311842fd4bd27a5bdc93081c9300c7131;hp=0d8e6ac84ccc1ed548df30bfe094970049e904d6;hpb=c8cccb4a92adceb943c635fe62dad0d034462ce0;p=freeside.git diff --git a/httemplate/elements/select-pkg_class.html b/httemplate/elements/select-pkg_class.html index 0d8e6ac84..f30259e55 100644 --- a/httemplate/elements/select-pkg_class.html +++ b/httemplate/elements/select-pkg_class.html @@ -1,18 +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', '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'}; + +