From: Seamus Lee Date: Wed, 11 Sep 2019 07:20:12 +0000 (+1000) Subject: Only Ignore Execptions thrown by the When package when its the UnitTests X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5e73744dbec24b6093e5492c560d51f11627beeb;p=civicrm-core.git Only Ignore Execptions thrown by the When package when its the UnitTests --- 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) {