From c4517497ee46627aaa90a54f75f569271e537265 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Tue, 4 Feb 2020 11:43:20 +0000 Subject: [PATCH] Call hook_civicrm_copy when we copy entities using RecurringEntity --- CRM/Core/BAO/RecurringEntity.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Core/BAO/RecurringEntity.php b/CRM/Core/BAO/RecurringEntity.php index b5e56e955c..6e16f1da75 100644 --- a/CRM/Core/BAO/RecurringEntity.php +++ b/CRM/Core/BAO/RecurringEntity.php @@ -586,6 +586,8 @@ class CRM_Core_BAO_RecurringEntity extends CRM_Core_DAO_RecurringEntity { CRM_Core_BAO_RecurringEntity::quickAdd($object->id, $newObject->id, $entityTable); } + + CRM_Utils_Hook::copy(CRM_Core_DAO_AllCoreTables::getBriefName($daoName), $newObject); return $newObject; } -- 2.25.1