Fix for PCP giving default anonymous
authorSudha Bisht <sudha.bisht@webaccessglobal.com>
Wed, 17 Jun 2015 07:19:18 +0000 (12:49 +0530)
committerSudha Bisht <sudha.bisht@webaccessglobal.com>
Wed, 17 Jun 2015 07:19:18 +0000 (12:49 +0530)
CRM/Contribute/Form/Contribution/Main.php

index a68889e28734542842a086848d1d6f92f239971b..a5b870b4015f7d4153257125630ba280899569e5 100644 (file)
@@ -574,8 +574,6 @@ 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, '&nbsp;&nbsp;&nbsp;');
-        $this->setDefaults(array('pcp_display_in_roll' => 1));
-        $this->setDefaults(array('pcp_is_anonymous' => 1));
 
         $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;'));