[freeside-commits] freeside/httemplate/search cust_bill.html, 1.19.2.2, 1.19.2.3

Ivan,,, ivan at wavetail.420.am
Tue Nov 27 15:47:22 PST 2007


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv7214

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	cust_bill.html 
Log Message:
fix small side-effect of mysql-compat change eliminating DISTINCT ON: map changing values of @where array

Index: cust_bill.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_bill.html,v
retrieving revision 1.19.2.2
retrieving revision 1.19.2.3
diff -u -d -r1.19.2.2 -r1.19.2.3
--- cust_bill.html	29 Oct 2007 10:30:57 -0000	1.19.2.2
+++ cust_bill.html	27 Nov 2007 23:47:20 -0000	1.19.2.3
@@ -148,7 +148,10 @@
     #$orderby = 'ORDER BY cust_bill.custnum ASC, cust_bill._date DESC';
     #$count_query = "SELECT 'N/A', 'N/A', 'N/A'"; #XXXXXXX fix
     
-    my @newest_where = map { s/\bcust_bill\./newest_cust_bill./g; }
+    my @newest_where = map { my $x = $_;
+                             $x =~ s/\bcust_bill\./newest_cust_bill./g;
+                             $x;
+                          }
                            grep ! /^cust_main./, @where;
     my $newest_where = scalar(@newest_where)
                          ? ' AND '. join(' AND ', @newest_where)



More information about the freeside-commits mailing list