X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FTask%2FBatch.php;h=e0078ef21c32cd7f4f42612caa5725af3a643930;hb=8f6ae60501d5d64ddbc6269648e71247dee0ce1b;hp=ab089b9fcf5579f91397c55642715dff3482ee09;hpb=52df19870805bf5a2bae2388a1f6c5a0309c2d92;p=civicrm-core.git diff --git a/CRM/Event/Form/Task/Batch.php b/CRM/Event/Form/Task/Batch.php index ab089b9fcf..e0078ef21c 100644 --- a/CRM/Event/Form/Task/Batch.php +++ b/CRM/Event/Form/Task/Batch.php @@ -1,9 +1,9 @@ _customFields); $entityColumnValue = array(); - if (CRM_Utils_Array::value('extends_entity_column_value', $customValue)) { + if (!empty($customValue['extends_entity_column_value'])) { $entityColumnValue = explode(CRM_Core_DAO::VALUE_SEPARATOR, $customValue['extends_entity_column_value'] ); @@ -227,7 +227,7 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { * * @access public * - * @return None + * @return void */ function setDefaultValues() { if (empty($this->_fields)) { @@ -265,7 +265,7 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { * * @access public * - * @return None + * @return void */ public function postProcess() { $params = $this->exportValues(); @@ -281,11 +281,11 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { ); $value['id'] = $key; - if (CRM_Utils_Array::value('participant_register_date', $value)) { + if (!empty($value['participant_register_date'])) { $value['register_date'] = CRM_Utils_Date::processDate($value['participant_register_date'], $value['participant_register_date_time']); } - if (CRM_Utils_Array::value('participant_role', $value)) { + if (!empty($value['participant_role'])) { $participantRoles = CRM_Event_PseudoConstant::participantRole(); if (is_array($value['participant_role'])) { $value['role_id'] = implode(CRM_Core_DAO::VALUE_SEPARATOR, array_keys($value['participant_role'])); @@ -298,7 +298,7 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { //need to send mail when status change $statusChange = FALSE; $relatedStatusChange = FALSE; - if (CRM_Utils_Array::value('participant_status', $value)) { + if (!empty($value['participant_status'])) { $value['status_id'] = $value['participant_status']; $fromStatusId = CRM_Utils_Array::value($key, $this->_fromStatusIds); if (!$fromStatusId) { @@ -313,7 +313,7 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { } } - if (CRM_Utils_Array::value('participant_source', $value)) { + if (!empty($value['participant_source'])) { $value['source'] = $value['participant_source']; } unset($value['participant_register_date']); @@ -339,6 +339,12 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { } //end of function + /** + * @param $participantId + * @param $statusId + * + * @return Ambigous|void + */ static function updatePendingOnlineContribution($participantId, $statusId) { if (!$participantId || !$statusId) { return;