CRM-15895: fix copy contribution page which links PCP to original contrib page
authoryashodha <yashodha.chaku@webaccessglobal.com>
Mon, 2 Feb 2015 08:50:06 +0000 (14:20 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Mon, 2 Feb 2015 08:50:06 +0000 (14:20 +0530)
----------------------------------------
* 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

index da921d378e668a3c361548f791fb4489c88c31aa..29b226c7ea1271f086a10f7b7aca928a572edea6 100644 (file)
@@ -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(