From 8939b4b21c001242a7215da068a8f88dd4404c15 Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 2 Feb 2015 14:20:06 +0530 Subject: [PATCH] CRM-15895: fix copy contribution page which links PCP to original contrib page ---------------------------------------- * CRM-15895: Copying contribution page still links PCP to original contrib page https://issues.civicrm.org/jira/browse/CRM-15895 --- CRM/Contribute/BAO/ContributionPage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Contribute/BAO/ContributionPage.php b/CRM/Contribute/BAO/ContributionPage.php index da921d378e..29b226c7ea 100644 --- a/CRM/Contribute/BAO/ContributionPage.php +++ b/CRM/Contribute/BAO/ContributionPage.php @@ -658,6 +658,7 @@ class CRM_Contribute_BAO_ContributionPage extends CRM_Contribute_DAO_Contributio 'entity_table' => 'civicrm_contribution_page', ), array( 'entity_id' => $copy->id, + 'target_entity_id' => $copy->id, )); $copyPremium = &CRM_Core_DAO::copyGeneric('CRM_Contribute_DAO_Premium', array( -- 2.25.1