diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index c19cc6c379f..2805f4556d3 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -2347,6 +2347,10 @@ class Commande extends CommonOrder // For triggers $line->fetch($lineid); + // Memorize previous line for triggers + $staticline = clone $line; + $line->oldline = $staticline; + if ($line->delete($user) > 0) { $result = $this->update_price(1);