X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FForm%2FTask%2FPickProfile.php;h=959147cf7f6c8ec573329e9ce215635b26f3071a;hb=f299f7db79fed6f3598c84302966bda087e7cac3;hp=62f916286b8fd9fc5f4fa82b1f3a12ef2e7e0aad;hpb=e5e6e7528e4c54e8dc9816d0b2bb482dafeda578;p=civicrm-core.git diff --git a/CRM/Contact/Form/Task/PickProfile.php b/CRM/Contact/Form/Task/PickProfile.php index 62f916286b..5f0af37bcb 100644 --- a/CRM/Contact/Form/Task/PickProfile.php +++ b/CRM/Contact/Form/Task/PickProfile.php @@ -1,9 +1,9 @@ _contactIds) > $this->_maxContacts) { - CRM_Core_Session::setStatus(ts("The maximum number of contacts you can select for Update multiple contacts is %1. You have selected %2. Please select fewer contacts from your search results and try again.", array( - 1 => $this->_maxContacts, - 2 => count($this->_contactIds), - )), ts('Maximum Exceeded'), 'error'); + CRM_Core_Session::setStatus(ts("The maximum number of contacts you can select for Update multiple contacts is %1. You have selected %2. Please select fewer contacts from your search results and try again.", [ + 1 => $this->_maxContacts, + 2 => count($this->_contactIds), + ]), ts('Maximum Exceeded'), 'error'); $validate = TRUE; } @@ -106,10 +109,10 @@ class CRM_Contact_Form_Task_PickProfile extends CRM_Contact_Form_Task { if (empty($profiles)) { $types = implode(' ' . ts('or') . ' ', $this->_contactTypes); - CRM_Core_Session::setStatus(ts("The contact type selected for Update multiple contacts does not have a corresponding profile. Please set up a profile for %1s and try again.", array(1 => $types)), ts('No Profile Available'), 'error'); + CRM_Core_Session::setStatus(ts("The contact type selected for Update multiple contacts does not have a corresponding profile. Please set up a profile for %1s and try again.", [1 => $types]), ts('No Profile Available'), 'error'); CRM_Utils_System::redirect($this->_userContext); } - $ufGroupElement = $this->add('select', 'uf_group_id', ts('Select Profile'), array('' => ts('- select profile -')) + $profiles, TRUE, array('class' => 'crm-select2 huge')); + $ufGroupElement = $this->add('select', 'uf_group_id', ts('Select Profile'), ['' => ts('- select profile -')] + $profiles, TRUE, ['class' => 'crm-select2 huge']); $this->addDefaultButtons(ts('Continue')); } @@ -118,7 +121,7 @@ class CRM_Contact_Form_Task_PickProfile extends CRM_Contact_Form_Task { * Add local and global form rules. */ public function addRules() { - $this->addFormRule(array('CRM_Contact_Form_Task_PickProfile', 'formRule')); + $this->addFormRule(['CRM_Contact_Form_Task_PickProfile', 'formRule']); } /**