Skip to content
Snippets Groups Projects
Commit a3b3ce9c authored by Juanjo Menent's avatar Juanjo Menent
Browse files

Merge pull request #3101 from FHenry/3.7

FIX: multicompny bug with getEntites without shared test
parents a8e3a880 9505d3a5
Branches
Tags
No related merge requests found
......@@ -81,7 +81,7 @@ abstract class CommonObject
$sql = "SELECT rowid, ref, ref_ext";
$sql.= " FROM ".MAIN_DB_PREFIX.$element;
$sql.= " WHERE entity IN (".getEntity($element).")" ;
$sql.= " WHERE entity IN (".getEntity($element,1).")" ;
if ($id > 0) $sql.= " AND rowid = ".$db->escape($id);
else if ($ref) $sql.= " AND ref = '".$db->escape($ref)."'";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment