Fix missing alias

This commit is contained in:
Laurent Destailleur 2021-03-09 20:12:14 +01:00
parent 8babacfe55
commit b1f4c29fde

View File

@ -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;