FIX missing table alias
This commit is contained in:
parent
e8dae7a8db
commit
6fdb140f04
@ -4413,7 +4413,7 @@ abstract class CommonObject
|
|||||||
$sql.= " AND c.".$element['parentkey']." = p.rowid";
|
$sql.= " AND c.".$element['parentkey']." = p.rowid";
|
||||||
}
|
}
|
||||||
if (!empty($entity)) {
|
if (!empty($entity)) {
|
||||||
$sql.= " AND entity = ".((int) $entity);
|
$sql.= " AND p.entity = ".((int) $entity);
|
||||||
}
|
}
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if ($resql) {
|
if ($resql) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user