Merge pull request #21102 from jyhere/patch-3

FIX errors in getLinesArray()
This commit is contained in:
Laurent Destailleur 2022-06-02 14:50:40 +02:00 committed by GitHub
commit 6115461b30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -958,8 +958,8 @@ class BOM extends CommonObject
$result = $objectline->fetchAll('ASC', 'position', 0, 0, array('customsql'=>'fk_bom = '.((int) $this->id)));
if (is_numeric($result)) {
$this->error = $this->error;
$this->errors = $this->errors;
$this->error = $objectline->error;
$this->errors = $objectline->errors;
return $result;
} else {
$this->lines = $result;