diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-08-03 17:52:34 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-08-03 17:52:34 -0700 |
commit | cf54023e010df76e0c39ac70902877d7c4c94c6e (patch) | |
tree | 8109fa975ae8ecb4435172f9a990435a734c67b6 /FS/FS/svc_Common.pm | |
parent | d7759b49c2ff3b220ab328767645bfed85d18f31 (diff) | |
parent | ecf1c9cc0a20be6e489657e005ea771977b9f69c (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'FS/FS/svc_Common.pm')
-rw-r--r-- | FS/FS/svc_Common.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/FS/FS/svc_Common.pm b/FS/FS/svc_Common.pm index 1dd9ffb63..f2456a56f 100644 --- a/FS/FS/svc_Common.pm +++ b/FS/FS/svc_Common.pm @@ -1481,8 +1481,12 @@ sub search { } #svcnum - if ( $params->{'svcnum'} =~ /^(\d+)$/ ) { - push @where, "svcnum = $1"; + if ( $params->{'svcnum'} ) { + my @svcnum = ref( $params->{'svcnum'} ) + ? @{ $params->{'svcnum'} } + : $params->{'svcnum'}; + @svcnum = grep /^\d+$/, @svcnum; + push @where, 'svcnum IN ('. join(',', @svcnum) . ')' if @svcnum; } # svcpart |