Skip to content

Commit

Permalink
Merge pull request #3174 from hregis/3.6_bug
Browse files Browse the repository at this point in the history
Fix: missing shared parameters
  • Loading branch information
Juanjo Menent committed Jul 9, 2015
2 parents 5d58871 + 9e7cb70 commit e2b5bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/class/commonobject.class.php
Expand Up @@ -69,8 +69,8 @@ static function isExistingObject($element, $id, $ref='', $ref_ext='')

$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)."'";
Expand Down

0 comments on commit e2b5bc7

Please sign in to comment.