Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/units/orders/orders_event_handler.php
Show First 20 Lines • Show All 3801 Lines • ▼ Show 20 Line(s) | |||||
{ | { | ||||
parent::OnSave($event); | parent::OnSave($event); | ||||
if ( $event->status != kEvent::erSUCCESS ) { | if ( $event->status != kEvent::erSUCCESS ) { | ||||
return ; | return ; | ||||
} | } | ||||
foreach ( $this->trackCopiedOrderIDs($event) as $id ) { | foreach ( $this->trackCopiedOrderIDs($event) as $id ) { | ||||
$this->Application->removeObject($event->getPrefixSpecial()); | |||||
$an_event = new kEvent($this->Prefix . ':Dummy'); | $an_event = new kEvent($this->Prefix . ':Dummy'); | ||||
$this->Application->SetVar($this->Prefix . '_id', $id); | $this->Application->SetVar($this->Prefix . '_id', $id); | ||||
$this->Application->SetVar($this->Prefix . '_mode', ''); // this is to fool ReserveItems to use live table | $this->Application->SetVar($this->Prefix . '_mode', ''); // this is to fool ReserveItems to use live table | ||||
$this->ReserveItems($an_event); | $this->ReserveItems($an_event); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines |