From 8416557e083a52aafadd08e192e43ada1ca2cfb1 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 4 Jan 2025 10:43:01 +0100 Subject: [PATCH] FIX $this->origin_object can not be instance of CommandeFournisseur here --- htdocs/reception/class/reception.class.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/htdocs/reception/class/reception.class.php b/htdocs/reception/class/reception.class.php index ea5794ed324..b85696b9cad 100644 --- a/htdocs/reception/class/reception.class.php +++ b/htdocs/reception/class/reception.class.php @@ -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; }