company entity: check for duplicates
This commit is contained in:
@@ -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')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user