mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 15:06:06 +00:00
fix checkEntityForDuplicate
This commit is contained in:
@@ -1254,8 +1254,12 @@ class Record extends \Espo\Core\Services\Base
|
||||
return false;
|
||||
}
|
||||
|
||||
public function checkEntityForDuplicate(Entity $entity, $data)
|
||||
public function checkEntityForDuplicate(Entity $entity, $data = null)
|
||||
{
|
||||
if (!$data) {
|
||||
$data = (object) [];
|
||||
}
|
||||
|
||||
$where = $this->getDuplicateWhereClause($entity, $data);
|
||||
|
||||
if ($where) {
|
||||
|
||||
Reference in New Issue
Block a user