[freeside-commits] freeside/FS/FS cust_main.pm, 1.271.2.71, 1.271.2.72
Ivan,,,
ivan at wavetail.420.am
Thu Oct 1 16:49:03 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv27362
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cust_main.pm
Log Message:
hopefully fully fix bulk email errors when selecting a single payby
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.271.2.71
retrieving revision 1.271.2.72
diff -u -d -r1.271.2.71 -r1.271.2.72
--- cust_main.pm 26 Jun 2009 18:53:52 -0000 1.271.2.71
+++ cust_main.pm 1 Oct 2009 23:49:01 -0000 1.271.2.72
@@ -5199,6 +5199,9 @@
my $job = delete $params->{'job'};
+ $params->{'payby'} = [ split(/\0/, $params->{'payby'}) ]
+ unless ref($params->{'payby'});
+
my $sql_query = $class->search_sql($params);
my $count_query = delete($sql_query->{'count_query'});
@@ -5260,6 +5263,9 @@
$param->{'job'} = $job;
+ $param->{'payby'} = [ split(/\0/, $param->{'payby'}) ]
+ unless ref($param->{'payby'});
+
my $error = FS::cust_main->email_search_sql( $param );
die $error if $error;
More information about the freeside-commits
mailing list