summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2005-12-09 16:56:53 +0000
committerivan <ivan>2005-12-09 16:56:53 +0000
commit88c42d0423368bf52d593021f704bfa38845ff71 (patch)
tree61b2e089e56c9550e6e858e4d6a60082efc92e45
parent5d03c5bf1e774050bbdad9964408f248855ec317 (diff)
fix postal mail checkbox misbehaving (isn't sticky on errors - reverts back to on)
-rwxr-xr-xhttemplate/edit/cust_main.cgi5
-rw-r--r--httemplate/edit/cust_main/billing.html7
2 files changed, 7 insertions, 5 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi
index e10c85f..144d540 100755
--- a/httemplate/edit/cust_main.cgi
+++ b/httemplate/edit/cust_main.cgi
@@ -234,7 +234,10 @@ Service address
<!-- billing info -->
-<%= include('cust_main/billing.html', $cust_main ) %>
+<%= include( 'cust_main/billing.html', $cust_main,
+ 'invoicing_list' => \@invoicing_list,
+ )
+%>
<SCRIPT>
function bottomfixup(what) {
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html
index 1f557c8..a9b3c1f 100644
--- a/httemplate/edit/cust_main/billing.html
+++ b/httemplate/edit/cust_main/billing.html
@@ -1,6 +1,7 @@
<%
-my( $cust_main ) = @_;
+my( $cust_main, %options ) = @_;
+my @invoicing_list = @{ $options{'invoicing_list'} };
my $conf = new FS::Conf;
my $payby_default = $conf->config('payby-default');
@@ -49,14 +50,12 @@ if ( $payby_default eq 'HIDE' ) {
<INPUT TYPE="hidden" NAME="tax" VALUE="<%= $cust_main->tax %>">
- <INPUT TYPE="hidden" NAME="invoicing_list" VALUE="<%= join(', ', $cust_main->invoicing_list) %>">
+ <INPUT TYPE="hidden" NAME="invoicing_list" VALUE="<%= join(', ', @invoicing_list) %>">
</FORM>
<% } else {
- my @invoicing_list = $cust_main->invoicing_list;
-
my $r = qq!<font color="#ff0000">*</font>&nbsp;!;
%>