From 5e73744dbec24b6093e5492c560d51f11627beeb Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 11 Sep 2019 17:20:12 +1000 Subject: [PATCH] Only Ignore Execptions thrown by the When package when its the UnitTests --- CRM/Core/BAO/RecurringEntity.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Core/BAO/RecurringEntity.php b/CRM/Core/BAO/RecurringEntity.php index a74f8ca35e..e0275b469f 100644 --- a/CRM/Core/BAO/RecurringEntity.php +++ b/CRM/Core/BAO/RecurringEntity.php @@ -345,7 +345,9 @@ class CRM_Core_BAO_RecurringEntity extends CRM_Core_DAO_RecurringEntity { $count = 1; try { - $this->recursion->RFC5545_COMPLIANT = When::IGNORE; + if (CRM_Core_Config::singleton()->userFramework == 'UnitTests') { + $this->recursion->RFC5545_COMPLIANT = When::IGNORE; + } $this->recursion->generateOccurrences(); } catch (Exception $e) { -- 2.25.1