From: Coleman Watts Date: Sat, 7 May 2016 22:27:45 +0000 (-0400) Subject: CRM-18452 - Fix navigation menu item permission search box X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d78feb629c18829a74c88c13294304eaa2c55c55;p=civicrm-core.git CRM-18452 - Fix navigation menu item permission search box --- diff --git a/CRM/Admin/Form/Navigation.php b/CRM/Admin/Form/Navigation.php index 23270f05a4..74c36b85ce 100644 --- a/CRM/Admin/Form/Navigation.php +++ b/CRM/Admin/Form/Navigation.php @@ -72,7 +72,7 @@ class CRM_Admin_Form_Navigation extends CRM_Admin_Form { $permissions[] = array('id' => $id, 'label' => $vals[0], 'description' => (array) CRM_Utils_Array::value(1, $vals)); } $this->add('text', 'permission', ts('Permission'), - array('placeholder' => ts('Unrestricted'), 'class' => 'huge', 'data-select-params' => json_encode(array('data' => $permissions))) + array('placeholder' => ts('Unrestricted'), 'class' => 'huge', 'data-select-params' => json_encode(array('data' => array('results' => $permissions, 'text' => 'label')))) ); $operators = array('AND' => ts('AND'), 'OR' => ts('OR'));