FIX $this->origin_object can not be instance of CommandeFournisseur here
This commit is contained in:
parent
0f198186e7
commit
8416557e08
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue