From a4755c1e377a6ff6f3fb12e7ec148632991982c6 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 5 Jun 2019 11:46:40 +1200 Subject: [PATCH] dev/core#1014 fix e-notice regression --- CRM/Core/Form/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Form/Search.php b/CRM/Core/Form/Search.php index ffeaf99b40..41688934af 100644 --- a/CRM/Core/Form/Search.php +++ b/CRM/Core/Form/Search.php @@ -262,7 +262,7 @@ class CRM_Core_Form_Search extends CRM_Core_Form { * Note this will only pick up fields declared via metadata. */ protected function convertTextStringsToUseLikeOperator() { - foreach ($this->getSearchFieldMetadata()[$this->getDefaultEntity()] as $fieldName => $field) { + foreach (CRM_Utils_Array::value($this->getDefaultEntity(), $this->getSearchFieldMetadata(), []) as $fieldName => $field) { if (!empty($this->_formValues[$fieldName]) && empty($field['options']) && empty($field['pseudoconstant'])) { if (in_array($field['type'], [CRM_Utils_Type::T_STRING, CRM_Utils_Type::T_TEXT])) { $this->_formValues[$fieldName] = ['LIKE' => CRM_Contact_BAO_Query::getWildCardedValue(TRUE, 'LIKE', $this->_formValues[$fieldName])]; -- 2.25.1