[freeside-commits] branch master updated. 0dfdc3e5dc012c1a2640ac2af22b1488cdfbd083

Mark Wells mark at 420.am
Tue May 7 15:16:28 PDT 2013


The branch, master has been updated
       via  0dfdc3e5dc012c1a2640ac2af22b1488cdfbd083 (commit)
      from  c6fa106e14a3bff641ca9f4f8a95c2749c53ba95 (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 0dfdc3e5dc012c1a2640ac2af22b1488cdfbd083
Author: Mark Wells <mark at freeside.biz>
Date:   Tue May 7 15:16:11 2013 -0700

    fix smart search for all-numeric strings

diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm
index cab80a8..6274107 100644
--- 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 ".

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_svc.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list