From 2a20766912d5d833e11ed6e094e25004ffe15d2a Mon Sep 17 00:00:00 2001 From: yuri Date: Mon, 10 Sep 2018 10:29:34 +0300 Subject: [PATCH] fix UniquId --- application/Espo/Repositories/UniqueId.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Espo/Repositories/UniqueId.php b/application/Espo/Repositories/UniqueId.php index 46db82d51f..4eccf8321c 100644 --- a/application/Espo/Repositories/UniqueId.php +++ b/application/Espo/Repositories/UniqueId.php @@ -44,7 +44,7 @@ class UniqueId extends \Espo\Core\ORM\Repositories\RDB protected function getNewEntity() { $entity = parent::getNewEntity(); - $entity->set('name', uniqid()); + $entity->set('name', \Espo\Core\Utils\Util::generateId()); return $entity; } }