Merge pull request #10924 from altairis-tof/oldline
memorize order line before delete (for triggers)
This commit is contained in:
commit
a47c627d8f
@ -2347,6 +2347,10 @@ class Commande extends CommonOrder
|
|||||||
// For triggers
|
// For triggers
|
||||||
$line->fetch($lineid);
|
$line->fetch($lineid);
|
||||||
|
|
||||||
|
// Memorize previous line for triggers
|
||||||
|
$staticline = clone $line;
|
||||||
|
$line->oldline = $staticline;
|
||||||
|
|
||||||
if ($line->delete($user) > 0) {
|
if ($line->delete($user) > 0) {
|
||||||
$result = $this->update_price(1);
|
$result = $this->update_price(1);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user