Skip to content
Snippets Groups Projects
Commit 94fe3c35 authored by lobo's avatar lobo
Browse files

fix CRM-12005

parent f24ba3a6
No related branches found
No related tags found
No related merge requests found
......@@ -567,7 +567,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
$elements[] = &$this->createElement('radio', NULL, '', ts('Include my name and message'), 0, $extraOption);
$elements[] = &$this->createElement('radio', NULL, '', ts('List my contribution anonymously'), 1, $extraOption);
$this->addGroup($elements, 'pcp_is_anonymous', NULL, '   ');
$this->_defaults['pcp_is_anonymous'] = 0;
$this->_defaults['pcp_is_anonymous'] = 0;
$this->add('text', 'pcp_roll_nickname', ts('Name'), array('maxlength' => 30));
$this->add('textarea', 'pcp_personal_note', ts('Personal Note'), array('style' => 'height: 3em; width: 40em;'));
......@@ -1422,6 +1422,9 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
// should we skip the confirm page?
if (!CRM_Utils_Array::value('is_confirm_enabled', $this->_values)) {
// call the post process hook for the main page before we switch to confirm
$this->postProcessHook();
// build the confirm page
$confirmForm = &$this->controller->_pages['Confirm'];
$confirmForm->preProcess();
......@@ -1432,7 +1435,8 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
$data['valid']['Confirm'] = 1;
// confirm the contribution
$confirmForm->postProcess();
// mainProcess calls the hook also
$confirmForm->mainProcess();
$qfKey = $this->controller->_key;
// redirect to thank you page
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment