[freeside-commits] freeside/httemplate/edit/cust_main billing.html, 1.5, 1.6

Ivan,,, ivan at wavetail.420.am
Fri Dec 9 08:56:55 PST 2005


Update of /home/cvs/cvsroot/freeside/httemplate/edit/cust_main
In directory wavetail:/tmp/cvs-serv17801/httemplate/edit/cust_main

Modified Files:
	billing.html 
Log Message:
fix postal mail checkbox misbehaving (isn't sticky on errors - reverts back to on)

Index: billing.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main/billing.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- billing.html	21 Nov 2005 12:41:43 -0000	1.5
+++ billing.html	9 Dec 2005 16:56:53 -0000	1.6
@@ -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 @@
 
   <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;!;
 
 %>



More information about the freeside-commits mailing list