From 6876f9fcc39ee1d331f69ccf81a336508eca39dc Mon Sep 17 00:00:00 2001 From: Goldron Date: Sun, 25 Feb 2024 09:58:24 +0100 Subject: [PATCH] Fixes an error by initializing ->line in the insert_discount method. (#28407) * Fixes an error by initializing ->line in the insert_discount method. * Update propal.class.php --------- Co-authored-by: David IGREJA Co-authored-by: Laurent Destailleur --- htdocs/comm/propal/class/propal.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 2a54cf84cf1..937b3424acb 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -514,7 +514,7 @@ class Propal extends CommonObject $line = new PropaleLigne($this->db); - $this->line->context = $this->context; + $line->context = $this->context; $line->fk_propal = $this->id; $line->fk_remise_except = $remise->id;