Merge branch 'evo-DBorderCurrentState'
This commit is contained in:
commit
86bb7a1413
@ -1,5 +1,25 @@
|
||||
<?php
|
||||
class OrderHistory extends OrderHistoryCore {
|
||||
public function add($autodate = TRUE, $nullValues = FALSE) {
|
||||
if($result = parent::add($autodate, $nullValues)) {
|
||||
Db::getInstance()->ExecuteS('
|
||||
INSERT INTO `'._DB_PREFIX_.'order_state_current`
|
||||
VALUES (
|
||||
'.(int) $this->id_order.',
|
||||
'.(int) $this->id_order_state.',
|
||||
NOW()
|
||||
)
|
||||
ON DUPLICATE KEY UPDATE
|
||||
`id_order_state` = '.(int) $this->id_order_state.',
|
||||
`date_upd` = NOW()
|
||||
');
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
public function addWithemail($autodate = true, $templateVars = false) {
|
||||
$lastOrderState = $this->getLastOrderState($this->id_order);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user