From 952a24a1bd2b4bcbf4f2a0535eb923d4f1aba074 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 8 Apr 2017 09:40:55 -0600 Subject: [PATCH] Update destinations.php --- app/destinations/destinations.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/destinations/destinations.php b/app/destinations/destinations.php index 21597e9a11..89ffc63f31 100644 --- a/app/destinations/destinations.php +++ b/app/destinations/destinations.php @@ -68,9 +68,9 @@ $sql .= "("; $sql .= " destination_type like '%".$search."%' "; $sql .= " or destination_number like '%".$search."%' "; - $sql .= " or destination_context like '%".$search."%' "; + $sql .= " or lower(destination_context) like '%".strtolower($search)."%' "; $sql .= " or destination_enabled like '%".$search."%' "; - $sql .= " or destination_description like '%".$search."%' "; + $sql .= " or lower(destination_description) like '%".strtolower($search)."%' "; $sql .= ") "; } $prep_statement = $db->prepare($sql); @@ -110,9 +110,9 @@ $sql .= " ("; $sql .= " destination_type like '%".$search."%' "; $sql .= " or destination_number like '%".$search."%' "; - $sql .= " or destination_context like '%".$search."%' "; + $sql .= " or lower(destination_context) like '%".strtolower($search)."%' "; $sql .= " or destination_enabled like '%".$search."%' "; - $sql .= " or destination_description like '%".$search."%' "; + $sql .= " or lower(destination_description) like '%".strtolower($search)."%' "; $sql .= ") "; } if (strlen($order_by) > 0) {