From e3f27fc09b87e12c8fed2ece3c84faf56f9c7657 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Wed, 3 May 2017 20:58:15 +0530 Subject: [PATCH] CRM-20515: otice errors on dmaster for add petition --- CRM/Campaign/Form/Petition.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1