This commit is contained in:
Laurent Destailleur 2021-12-01 15:37:31 +01:00
parent c6a071622a
commit 3cb07fd1ec

View File

@ -550,7 +550,7 @@ abstract class CommonObject
dol_print_error(get_class()."::isExistingObject ".$error, LOG_ERR);
return -1;
}
if ($ref || $ref_ext) {
if ($ref || $ref_ext) { // Because the same ref can exists in 2 different entities, we force the current one in priority
$sql .= " AND entity = ".((int) $conf->entity);
}