X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-taxclass.html;h=981c1a5f2b72a9b538b73f2bc4f5b3419c478346;hb=7bc780834a604a2e678d028f875fd4b546412cfb;hp=3bba683f87857e0515972a485ae58d18f0417ead;hpb=1d920e3661c29398763d05c82bbe3a493a19fbae;p=freeside.git diff --git a/httemplate/elements/tr-select-taxclass.html b/httemplate/elements/tr-select-taxclass.html index 3bba683f8..981c1a5f2 100644 --- a/httemplate/elements/tr-select-taxclass.html +++ b/httemplate/elements/tr-select-taxclass.html @@ -2,22 +2,23 @@ % || scalar(@{ $opt{'taxclasses'} }) == 0 % ) { - " VALUE="<% $taxclass %>"> + % } else { <% $opt{'label'} || 'Tax class: ' %> - <% include( '/elements/select-taxclass.html', $taxclass, %opt ) %> + <% include( '/elements/select-taxclass.html', 'curr_value' => $selected_taxclass, %opt ) %> % } <%init> -my( $taxclass, %opt ) = @_; +my( %opt ) = @_; my $conf = new FS::Conf; +my $selected_taxclass = $opt{'curr_value'}; # || $opt{'value'} necessary? unless ( $opt{'taxclasses'} ) {