X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FTask%2FBatch.php;h=54fd23af494b3f401d92f69d1161619fdc60c517;hb=7cdbcb16520d540f0b7c5cb43c9511374d692931;hp=95b96d7196932951d83e0c3627220693ea95f7b8;hpb=92b0f883315c72514e629b1c9e37261b84186785;p=civicrm-core.git diff --git a/CRM/Event/Form/Task/Batch.php b/CRM/Event/Form/Task/Batch.php index 95b96d7196..54fd23af49 100644 --- a/CRM/Event/Form/Task/Batch.php +++ b/CRM/Event/Form/Task/Batch.php @@ -1,7 +1,7 @@ get('ufGroupId'); if (!$ufGroupId) { @@ -227,20 +225,19 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { $buttonName = $this->controller->getButtonName('submit'); if ($suppressFields && $buttonName != '_qf_Batch_next') { - CRM_Core_Session::setStatus(ts("FILE or Autocomplete Select type field(s) in the selected profile are not supported for Batch Update and have been excluded."), ts('Unsupported Field Type'), 'info'); + CRM_Core_Session::setStatus(ts("File or Autocomplete-Select type field(s) in the selected profile are not supported for Batch Update."), ts('Unsupported Field Type'), 'info'); } $this->addDefaultButtons(ts('Update Participant(s)')); } /** - * This function sets the default values for the form. + * Set default values for the form. * - * @access public * * @return void */ - function setDefaultValues() { + public function setDefaultValues() { if (empty($this->_fields)) { return; } @@ -272,9 +269,8 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { } /** - * process the form after the input has been submitted and validated + * Process the form after the input has been submitted and validated * - * @access public * * @return void */ @@ -348,15 +344,14 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { CRM_Core_Session::setStatus(ts('No updates have been saved.'), ts('Not Saved'), 'alert'); } } - //end of function /** - * @param $participantId - * @param $statusId + * @param int $participantId + * @param int $statusId * * @return Ambigous|void */ - static function updatePendingOnlineContribution($participantId, $statusId) { + public static function updatePendingOnlineContribution($participantId, $statusId) { if (!$participantId || !$statusId) { return; } @@ -402,4 +397,3 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { return $updatedStatusId; } } -