projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6fa106
)
fix smart search for all-numeric strings
author
Mark Wells
<mark@freeside.biz>
Tue, 7 May 2013 22:16:11 +0000
(15:16 -0700)
committer
Mark Wells
<mark@freeside.biz>
Tue, 7 May 2013 22:16:11 +0000
(15:16 -0700)
FS/FS/cust_svc.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_svc.pm
b/FS/FS/cust_svc.pm
index
cab80a8
..
6274107
100644
(file)
--- a/
FS/FS/cust_svc.pm
+++ b/
FS/FS/cust_svc.pm
@@
-870,7
+870,7
@@
sub smart_search_param {
FS::part_svc->svc_tables;
if ( $string =~ /^(\d+)$/ ) {
- unshift @or, "SELECT cust_svc.svcnum, NULL FROM cust_svc WHERE agent_svcid = $1";
+ unshift @or, "SELECT cust_svc.svcnum, NULL
as svcdb
FROM cust_svc WHERE agent_svcid = $1";
}
my $addl_from = " RIGHT JOIN (\n" . join("\nUNION\n", @or) . "\n) AS svc_all ".