X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FForm%2FTask%2FBatch.php;h=d0bc8ac477566325d3761d631bc96f339a58d364;hb=69078420f066e5d038b91372e9a19eb77073121b;hp=cea1787a065486722a1172bf875a5e5e43ebdbd3;hpb=c11e002db8f6ca6f66ca605b7a3406c3fa71a6fa;p=civicrm-core.git diff --git a/CRM/Contact/Form/Task/Batch.php b/CRM/Contact/Form/Task/Batch.php index cea1787a06..d0bc8ac477 100644 --- a/CRM/Contact/Form/Task/Batch.php +++ b/CRM/Contact/Form/Task/Batch.php @@ -45,21 +45,25 @@ class CRM_Contact_Form_Task_Batch extends CRM_Contact_Form_Task { /** * Maximum contacts that should be allowed to update. + * @var int */ protected $_maxContacts = 100; /** * Maximum profile fields that will be displayed. + * @var int */ protected $_maxFields = 9; /** * Variable to store redirect path. + * @var string */ protected $_userContext; /** * When not to reset sort_name. + * @var bool */ protected $_preserveDefault = TRUE; @@ -102,17 +106,16 @@ class CRM_Contact_Form_Task_Batch extends CRM_Contact_Form_Task { //$this->_fields = array_slice($this->_fields, 0, $this->_maxFields); $this->addButtons([ - [ - 'type' => 'submit', - 'name' => ts('Update Contact(s)'), - 'isDefault' => TRUE, - ], - [ - 'type' => 'cancel', - 'name' => ts('Cancel'), - ], - ] - ); + [ + 'type' => 'submit', + 'name' => ts('Update Contact(s)'), + 'isDefault' => TRUE, + ], + [ + 'type' => 'cancel', + 'name' => ts('Cancel'), + ], + ]); $this->assign('profileTitle', $this->_title); $this->assign('componentIds', $this->_contactIds); @@ -249,9 +252,9 @@ class CRM_Contact_Form_Task_Batch extends CRM_Contact_Form_Task { CRM_Core_Session::setStatus('', ts("Updates Saved"), 'success'); if ($inValidSubtypeCnt) { CRM_Core_Session::setStatus(ts('Contact Subtype field of 1 contact has not been updated.', [ - 'plural' => 'Contact Subtype field of %count contacts has not been updated.', - 'count' => $inValidSubtypeCnt, - ]), ts('Invalid Subtype')); + 'plural' => 'Contact Subtype field of %count contacts has not been updated.', + 'count' => $inValidSubtypeCnt, + ]), ts('Invalid Subtype')); } }