summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-02-25 12:56:28 -0600
committerJonathan Prykop <jonathan@freeside.biz>2016-02-25 13:01:04 -0600
commite476b3f5c0dd830f9c3698a1a9a8ba8848e6a490 (patch)
tree4da7a439741352c8d30c5b947e17ca94f95b0e22
parent05aed8f2f0c80f407c6828df8316335638d9dbb6 (diff)
RT#38597: OQM - svc Circuit use and setup [fixed case handling]
-rw-r--r--FS/FS/svc_circuit.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/svc_circuit.pm b/FS/FS/svc_circuit.pm
index 1a42efadd..13d84846e 100644
--- a/FS/FS/svc_circuit.pm
+++ b/FS/FS/svc_circuit.pm
@@ -221,9 +221,9 @@ sub label {
sub search_sql {
my ($class, $string) = @_;
my @where = ();
- push @where, 'LOWER(svc_circuit.circuit_id) = ' . dbh->quote($string);
- push @where, 'LOWER(circuit_provider.provider) = ' . dbh->quote($string);
- push @where, 'LOWER(circuit_type.typename) = ' . dbh->quote($string);
+ push @where, 'LOWER(svc_circuit.circuit_id) = LOWER(' . dbh->quote($string) . ')';
+ push @where, 'LOWER(circuit_provider.provider) = LOWER(' . dbh->quote($string) . ')';
+ push @where, 'LOWER(circuit_type.typename) = LOWER(' . dbh->quote($string) . ')';
'(' . join(' OR ', @where) . ')';
}