forked from Wavyzz/dolibarr
FIX $this->origin_object can not be instance of CommandeFournisseur here
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user