EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
stream updated at only if stream enabled
Yuri Kuznetsove192ea3c4152
diff --git a/application/Espo/Tools/Stream/Service.php b/application/Espo/Tools/Stream/Service.phpindex 7305e3bc4d..0b7a9df236 100644--- a/application/Espo/Tools/Stream/Service.php+++ b/application/Espo/Tools/Stream/Service.php@@ -790,6 +790,10 @@ class Service$this->entityManager->saveEntity($note, $noteOptions);+ if (!$this->checkIsEnabled($parent->getEntityType())) {+ return;+ }+$this->updateStreamUpdatedAt($parent);}@@ -832,6 +836,10 @@ class Service$this->entityManager->saveEntity($note, $noteOptions);+ if (!$this->checkIsEnabled($parent->getEntityType())) {+ return;+ }+$this->updateStreamUpdatedAt($parent);}@@ -965,7 +973,8 @@ class Service$entity->isNew() ||$this->hasAuditedFieldChanged($entity) ||$this->hasStatusFieldChanged($entity) ||- $this->hasAssignedUserChanged($entity);+ $this->hasAssignedUserChanged($entity) &&+ $this->checkIsEnabled($entity->getEntityType());}private function hasAssignedUserChanged(Entity $entity): bool