[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 9eadd8ddc44109c36ac69ec100dca39ac2dd3f78
Ivan
ivan at 420.am
Wed Mar 13 17:05:17 PDT 2013
The branch, FREESIDE_2_3_BRANCH has been updated
via 9eadd8ddc44109c36ac69ec100dca39ac2dd3f78 (commit)
from 55bea78010c7ce83909202773e746f5a33852b45 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9eadd8ddc44109c36ac69ec100dca39ac2dd3f78
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Mar 13 17:05:15 2013 -0700
fix arrayref svcpart searching for freeside-username_list, RT#21054
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm
index 7737a70..1bfdde0 100644
--- a/FS/FS/svc_acct.pm
+++ b/FS/FS/svc_acct.pm
@@ -2882,8 +2882,14 @@ sub search {
}
# svcpart
- if ( $params->{'svcpart'} =~ /^(\d+)$/ ) {
- push @where, "svcpart = $1";
+ if ( $params->{'svcpart'} ) {
+ my @svcpart = ref( $params->{'svcpart'} )
+ ? @{ $params->{'svcpart'} }
+ : $params->{'svcpart'}
+ ? ( $params->{'svcpart'} )
+ : ();
+ @svcpart = grep /^(\d+)$/, @svcpart;
+ push @where, 'svcpart IN ('. join(',', @svcpart ). ')' if @svcpart;
}
if ( $params->{'exportnum'} =~ /^(\d+)$/ ) {
-----------------------------------------------------------------------
Summary of changes:
FS/FS/svc_acct.pm | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list