From 9c2b1d92ce82b527cab6beeb72fa652982c8caeb Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 3 Nov 2023 11:56:45 +0200 Subject: [PATCH] cs --- application/Espo/Core/Record/Duplicator/EntityDuplicator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Espo/Core/Record/Duplicator/EntityDuplicator.php b/application/Espo/Core/Record/Duplicator/EntityDuplicator.php index 64a5062e24..1d43dd7447 100644 --- a/application/Espo/Core/Record/Duplicator/EntityDuplicator.php +++ b/application/Espo/Core/Record/Duplicator/EntityDuplicator.php @@ -29,6 +29,7 @@ namespace Espo\Core\Record\Duplicator; +use Espo\Core\ORM\Type\FieldType; use Espo\Core\Utils\Metadata; use Espo\ORM\Entity; use Espo\ORM\Defs; @@ -97,8 +98,7 @@ class EntityDuplicator { $type = $fieldDefs->getType(); - // @todo Use FieldType constants. - if (in_array($type, ['autoincrement', 'number'])) { + if (in_array($type, [FieldType::AUTOINCREMENT, FieldType::NUMBER])) { return true; }