diff options
author | ivan <ivan> | 2008-04-16 20:34:41 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-04-16 20:34:41 +0000 |
commit | fba0d3390b1d53199777735ea0366b450aa2576b (patch) | |
tree | b84d7706b352db49b6bb674fb47f58fa2820103d /httemplate/elements/tr-select-taxclass.html | |
parent | 6eae00a74907ad88924641a9079c59b55102fb5f (diff) |
fix tax class on package def edit
Diffstat (limited to 'httemplate/elements/tr-select-taxclass.html')
-rw-r--r-- | httemplate/elements/tr-select-taxclass.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/httemplate/elements/tr-select-taxclass.html b/httemplate/elements/tr-select-taxclass.html index 3bba683f8..7006b1ac7 100644 --- a/httemplate/elements/tr-select-taxclass.html +++ b/httemplate/elements/tr-select-taxclass.html @@ -2,22 +2,23 @@ % || scalar(@{ $opt{'taxclasses'} }) == 0 % ) { - <INPUT TYPE="hidden" NAME=""<% $opt{'element_name'} || $opt{'field'} || 'taxclass' %>" VALUE="<% $taxclass %>"> + <INPUT TYPE="hidden" NAME=""<% $opt{'element_name'} || $opt{'field'} || 'taxclass' %>" VALUE="<% $selected_taxclass %>"> % } else { <TR> <TD ALIGN="right"><% $opt{'label'} || 'Tax class: ' %></TD> <TD> - <% include( '/elements/select-taxclass.html', $taxclass, %opt ) %> + <% include( '/elements/select-taxclass.html', 'curr_value' => $selected_taxclass, %opt ) %> </TD> </TR> % } <%init> -my( $taxclass, %opt ) = @_; +my( %opt ) = @_; my $conf = new FS::Conf; +my $selected_taxclass = $opt{'curr_value'}; # || $opt{'value'} necessary? unless ( $opt{'taxclasses'} ) { |