From: Jonathan Prykop Date: Thu, 25 Feb 2016 18:56:28 +0000 (-0600) Subject: RT#38597: OQM - svc Circuit use and setup [fixed case handling] X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=9075f8df5c274446dc42dd499413269effa183d5;p=freeside.git RT#38597: OQM - svc Circuit use and setup [fixed case handling] --- diff --git a/FS/FS/svc_circuit.pm b/FS/FS/svc_circuit.pm index 8ec0dadce..0d42bd96f 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) . ')'; }