From b1f4c29fde9c74858c5c27c87c8516fc9a490a41 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 9 Mar 2021 20:12:14 +0100 Subject: [PATCH] Fix missing alias --- htdocs/core/class/commonobject.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index c324b2502c9..a392fd793d5 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -8532,7 +8532,7 @@ abstract class CommonObject $objectline = new $objectlineclassname($this->db); $sql = 'SELECT '.$objectline->getFieldList('l'); - $sql .= ' FROM '.MAIN_DB_PREFIX.$objectline->table_element; + $sql .= ' FROM '.MAIN_DB_PREFIX.$objectline->table_element.' as l'; $sql .= ' WHERE l.fk_'.$this->element.' = '.$this->id; if ($morewhere) { $sql .= $morewhere;