From dbb80aecd1afb0853d80d474a93ec674f68f0d1a Mon Sep 17 00:00:00 2001 From: florian HENRY Date: Mon, 2 Mar 2020 15:22:35 +0100 Subject: [PATCH] Fix line origin and Id when create order from --- htdocs/commande/class/commande.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index b19210f894a..7249973f768 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -951,8 +951,8 @@ class Commande extends CommonOrder $line->label, $line->array_options, $line->fk_unit, - $this->element, - $line->id + $line->origin, + $line->origin_id ); if ($result < 0) {