From 69d29ea7598f38875750492ecfaab7d735484bab Mon Sep 17 00:00:00 2001 From: eileenmcnaughton Date: Wed, 16 Dec 2015 18:07:32 +0000 Subject: [PATCH] CRM-17118 use shared function to add campaign field This function does some checks to make sure there are enabled campaigns --- CRM/Contribute/Form/UpdateSubscription.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/UpdateSubscription.php b/CRM/Contribute/Form/UpdateSubscription.php index 1ade6eca22..3c871634a3 100644 --- a/CRM/Contribute/Form/UpdateSubscription.php +++ b/CRM/Contribute/Form/UpdateSubscription.php @@ -159,7 +159,7 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form { } if (CRM_Core_Permission::check('edit contributions')) { - $this->addEntityRef('campaign_id', 'Campaign', array('entity' => 'Campaign')); + CRM_Campaign_BAO_Campaign::addCampaign($this, CRM_Utils_Array::value('campaign_id', $this->_values)); } $type = 'next'; -- 2.25.1