CRM-18452 - Fix navigation menu item permission search box
authorColeman Watts <coleman@civicrm.org>
Sat, 7 May 2016 22:27:45 +0000 (18:27 -0400)
committerColeman Watts <coleman@civicrm.org>
Sat, 7 May 2016 22:27:45 +0000 (18:27 -0400)
CRM/Admin/Form/Navigation.php

index 23270f05a49b68e2e3c5bed5e3ffb7e33e83cb77..74c36b85ce02172849e1e2a3e199b86c3674bb50 100644 (file)
@@ -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'));