FIX Change position of line in BOM

This commit is contained in:
Laurent Destailleur
2020-07-09 16:00:15 +02:00
parent f756864670
commit b8721e0c64
2 changed files with 5 additions and 2 deletions

View File

@@ -8154,6 +8154,9 @@ abstract class CommonObject
$sql .= ' FROM '.MAIN_DB_PREFIX.$objectline->table_element;
$sql .= ' WHERE fk_'.$this->element.' = '.$this->id;
if ($morewhere) $sql .= $morewhere;
if (isset($objectline->fields['position'])) {
$sql .= $this->db->order('position', 'ASC');
}
$resql = $this->db->query($sql);
if ($resql)