Merge pull request #10924 from altairis-tof/oldline

memorize order line before delete (for triggers)
This commit is contained in:
Laurent Destailleur 2021-06-19 15:00:28 +02:00 committed by GitHub
commit a47c627d8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);