2
0
forked from Wavyzz/dolibarr

FIX $this->origin_object can not be instance of CommandeFournisseur here

This commit is contained in:
Regis Houssin
2025-01-04 10:43:01 +01:00
parent 0f198186e7
commit 8416557e08

View File

@@ -729,11 +729,7 @@ class Reception extends CommonObject
$this->fetch_origin();
if ($this->origin_object instanceof CommonObject && empty($this->origin_object->lines)) {
$res = $this->origin_object->fetch_lines();
if ($this->origin_object instanceof CommandeFournisseur) {
$this->commandeFournisseur = $this->origin_object; // deprecated
} else {
$this->commandeFournisseur = null; // deprecated
}
$this->commandeFournisseur = null; // deprecated
if ($res < 0) {
return $res;
}