X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FPCP%2FForm%2FEvent.php;h=2b02239dee8e54b4531166f64874df7b1dbcb8a8;hb=353ffa53c335f7b94ebaddc701e46f2bb30c7048;hp=9570b112eed8d3e53f3253e2cb69f780767a27fa;hpb=49414d6faa37375cef1ea0a156054ddd9cc6ae8d;p=civicrm-core.git diff --git a/CRM/PCP/Form/Event.php b/CRM/PCP/Form/Event.php index 9570b112ee..2b02239dee 100644 --- a/CRM/PCP/Form/Event.php +++ b/CRM/PCP/Form/Event.php @@ -80,7 +80,8 @@ class CRM_PCP_Form_Event extends CRM_Event_Form_ManageEvent { $defaults['link_text'] = ts('Promote this event with a personal campaign page'); if ($this->_id && - $ccReceipt = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $this->_id, 'cc_receipt')) { + $ccReceipt = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $this->_id, 'cc_receipt') + ) { $defaults['notify_email'] = $ccReceipt; } } @@ -105,7 +106,8 @@ class CRM_PCP_Form_Event extends CRM_Event_Form_ManageEvent { $this->add('select', 'target_entity_id', ts('Online Contribution Page'), array( - '' => ts('- select -')) + + '' => ts('- select -') + ) + CRM_Contribute_PseudoConstant::contributionPage() ); @@ -119,7 +121,9 @@ class CRM_PCP_Form_Event extends CRM_Event_Form_ManageEvent { if (!empty($pcpBlock->id) && CRM_PCP_BAO_PCP::getPcpBlockInUse($pcpBlock->id)) { foreach (array( - 'target_entity_type', 'target_entity_id') as $element_name) { + 'target_entity_type', + 'target_entity_id' + ) as $element_name) { $element = $this->getElement($element_name); $element->freeze(); } @@ -192,9 +196,9 @@ class CRM_PCP_Form_Event extends CRM_Event_Form_ManageEvent { $params['target_entity_id'] = CRM_Utils_Array::value('target_entity_id', $params, $this->_id); } - $dao = new CRM_PCP_DAO_PCPBlock(); + $dao = new CRM_PCP_DAO_PCPBlock(); $dao->entity_table = $params['entity_table']; - $dao->entity_id = $this->_id; + $dao->entity_id = $this->_id; $dao->find(TRUE); $params['id'] = $dao->id; $params['is_active'] = CRM_Utils_Array::value('pcp_active', $params, FALSE);