[FIX] Add fetch_optionnals() to BOMLine for api calls (#28349)

This commit is contained in:
Olivier ANDRADE SANCHEZ 2024-02-22 11:32:30 +01:00 committed by GitHub
parent 9ef57501a2
commit 1fe93ab55e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1945,8 +1945,9 @@ class BOMLine extends CommonObjectLine
$num = $this->db->num_rows($resql);
while ($obj = $this->db->fetch_object($resql)) {
$record = new self($this->db);
$record = new self($this->db);
$record->setVarsFromFetchObj($obj);
$record->fetch_optionals();
$records[$record->id] = $record;
}