Fix uniqueness of objects reference
This commit is contained in:
parent
5710bcd38a
commit
05234390f2
1 changed files with 1 additions and 0 deletions
|
|
@ -364,6 +364,7 @@ abstract class CommonObject
|
|||
dol_print_error(get_class()."::isExistingObject ".$error, LOG_ERR);
|
||||
return -1;
|
||||
}
|
||||
if ($ref || $ref_ext) $sql.= " AND entity = ".$conf->entity;
|
||||
|
||||
dol_syslog(get_class()."::isExistingObject", LOG_DEBUG);
|
||||
$resql = $db->query($sql);
|
||||
|
|
|
|||
Loading…
Reference in a new issue