summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2006-12-18 11:01:14 +0000
committerivan <ivan>2006-12-18 11:01:14 +0000
commit25c113d3edad9809e3834a298f79987fa65e6d7c (patch)
treef6149318c6a564839d7a50c0dd5b87c538fe7b8e /httemplate
parentdbaa70f427d50632c70e67f1238ccfa7a845f616 (diff)
fix tax class not adding when there is only one pkg_class choice (triggers javascript error
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/edit/part_pkg.cgi15
1 files changed, 8 insertions, 7 deletions
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi
index 185d66ac7..c70ef74fa 100755
--- a/httemplate/edit/part_pkg.cgi
+++ b/httemplate/edit/part_pkg.cgi
@@ -225,12 +225,13 @@ Tax information
%
%tie my %options, 'Tie::IxHash', map { $_=>$plans{$_}->{'name'} } keys %plans;
%
-%my @form_select = ('classnum');
-%if ( $conf->exists('enable_taxclasses') ) {
-% push @form_select, 'taxclass';
-%} else {
-% push @fixups, 'taxclass'; #hidden
-%}
+%#my @form_select = ('classnum');
+%#if ( $conf->exists('enable_taxclasses') ) {
+%# push @form_select, 'taxclass';
+%#} else {
+%# push @fixups, 'taxclass'; #hidden
+%#}
+%my @form_elements = ( 'classnum', 'taxclass' );
%
%my @form_radio = ();
%if ( dbdef->table('pkg_svc')->column('primary_svc') ) {
@@ -247,12 +248,12 @@ Tax information
% 'options' => \%options,
% 'form_name' => 'dummy',
% 'form_action' => 'process/part_pkg.cgi',
+% 'form_elements' => \@form_elements,
% 'form_text' => [ qw(pkg comment promo_code clone pkgnum pkgpart),
% @fixups
% ],
% 'form_checkbox' => [ qw(setuptax recurtax disabled) ],
% 'form_radio' => \@form_radio,
-% 'form_select' => \@form_select,
% 'layer_callback' => sub {
% my $layer = shift;
% my $html = qq!<INPUT TYPE="hidden" NAME="plan" VALUE="$layer">!.