mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #3174 from hregis/3.6_bug
Fix: missing shared parameters
This commit is contained in:
commit
e2b5bc756a
|
|
@ -69,8 +69,8 @@ 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, true).")" ;
|
||||
|
||||
if ($id > 0) $sql.= " AND rowid = ".$db->escape($id);
|
||||
else if ($ref) $sql.= " AND ref = '".$db->escape($ref)."'";
|
||||
else if ($ref_ext) $sql.= " AND ref_ext = '".$db->escape($ref_ext)."'";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user