Skip to content

Commit

Permalink
Merge pull request #10296 from JMAConsulting/CRM-20515
Browse files Browse the repository at this point in the history
CRM-20515: otice errors on dmaster for add petition
  • Loading branch information
eileenmcnaughton authored May 3, 2017
2 parents 294ea01 + e3f27fc commit 386348d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Campaign/Form/Petition.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function buildQuickForm() {

$attributes = CRM_Core_DAO::getAttribute('CRM_Campaign_DAO_Survey');

$petitionTypeID = CRM_Core_OptionGroup::getValue('activity_type', 'petition', 'name');
$petitionTypeID = CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', 'activity_type_id', 'Petition');
$this->addElement('hidden', 'activity_type_id', $petitionTypeID);

// script / instructions / description of petition purpose
Expand Down

0 comments on commit 386348d

Please sign in to comment.