Fix uniqueness of objects reference

This commit is contained in:
Laurent Léonard 2015-12-07 02:02:03 +01:00
parent 5710bcd38a
commit 05234390f2

View File

@ -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);