mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-27 22:46:04 +00:00
Cleanup
This commit is contained in:
@@ -466,26 +466,26 @@ class Saver implements SaverInterface
|
||||
foreach ($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,
|
||||
|
||||
Reference in New Issue
Block a user