X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fselect-pkg_class.html;h=f30259e55d4336983968c2e9c5120585017b6e0d;hp=8e873ed660d2f703be7c02589ad1d47c99685159;hb=eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd;hpb=32b5d3a31f112a381f0a15ac5e3a2204242f3405 diff --git a/httemplate/elements/select-pkg_class.html b/httemplate/elements/select-pkg_class.html index 8e873ed66..f30259e55 100644 --- a/httemplate/elements/select-pkg_class.html +++ b/httemplate/elements/select-pkg_class.html @@ -1,10 +1,3 @@ -% 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', @@ -14,3 +7,12 @@ %opt, ) %> +<%init> + +my %opt = @_; +my $classnum = $opt{'curr_value'} || $opt{'value'}; + +$opt{'records'} = delete $opt{'pkg_class'} + if $opt{'pkg_class'}; + +