diff --git a/application/Espo/Core/Templates/Services/Company.php b/application/Espo/Core/Templates/Services/Company.php index 0b8dd61fa4..92c918a263 100644 --- a/application/Espo/Core/Templates/Services/Company.php +++ b/application/Espo/Core/Templates/Services/Company.php @@ -31,5 +31,10 @@ namespace Espo\Core\Templates\Services; class Company extends \Espo\Services\Record { - + protected function getDuplicateWhereClause(Entity $entity, $data = array()) + { + return array( + 'name' => $entity->get('name') + ); + } }