EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Cleanup
Yuriiceb6bff9faf9
diff --git a/application/Espo/Core/FieldProcessing/Reminder/Saver.php b/application/Espo/Core/FieldProcessing/Reminder/Saver.phpindex 586a6788c4..91dedea531 100644--- a/application/Espo/Core/FieldProcessing/Reminder/Saver.php+++ b/application/Espo/Core/FieldProcessing/Reminder/Saver.php@@ -466,26 +466,26 @@ class Saver implements SaverInterfaceforeach ($list as $item) {$type = $item['type'];$hasTypeMap[$type] = true;-+$isCreated = $this->createReminder(entity: $entity,userId: $userId,start: $start,item: $item,);-+if (!$isCreated) {continue;}-+$createdTypeMap[$type] = true;}-+foreach (array_keys($hasTypeMap) as $type) {if ($createdTypeMap[$type] ?? false) {continue;}-+$this->createReminder(entity: $entity,userId: $userId,