From: deb.monish Date: Wed, 3 May 2017 15:28:15 +0000 (+0530) Subject: CRM-20515: otice errors on dmaster for add petition X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e3f27fc09b87e12c8fed2ece3c84faf56f9c7657;p=civicrm-core.git CRM-20515: otice errors on dmaster for add petition --- diff --git a/CRM/Campaign/Form/Petition.php b/CRM/Campaign/Form/Petition.php index 92c53f39b5..abcfc81d39 100644 --- a/CRM/Campaign/Form/Petition.php +++ b/CRM/Campaign/Form/Petition.php @@ -176,7 +176,7 @@ class CRM_Campaign_Form_Petition extends CRM_Core_Form { $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