minor fix
authormonishdeb <monish.deb@webaccessglobal.com>
Tue, 20 Oct 2015 08:25:12 +0000 (13:55 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Wed, 21 Oct 2015 07:37:10 +0000 (13:07 +0530)
CRM/Contact/Form/Search/Advanced.php

index a4abacda18da91187cbafca82d4ad270f78f9194..9b62331ffbfbec94079067da02ae35056b4e4ae1 100644 (file)
@@ -360,7 +360,7 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search {
           }
           $this->_formValues[$element] = array('IN' => $value);
         }
-        elseif ((substr($formValues[$key], 0, 1) == '%') || (substr($formValues[$key], -1, 1) == '%')) {
+        elseif ((substr($value, 0, 1) == '%') || (substr($value, -1, 1) == '%')) {
           $this->_formValues[$element] = array('LIKE' => $value);
         }
       }