Skip to content
Snippets Groups Projects
Commit 9505d3a5 authored by Florian Henry's avatar Florian Henry
Browse files

fix multicompny bug with getEntites without shared test

parent 29a21854
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment