// Context part 27

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7812 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-07-29 14:29:57 +00:00
parent 35748d1b8f
commit 5d090a25b3
66 changed files with 532 additions and 813 deletions
+3 -5
View File
@@ -28,8 +28,6 @@
include('../../config/config.inc.php');
include('../../init.php');
global $cookie;
$validReturn = array('infoexterne', 'token', 'etat', 'envoi');
$return = array();
@@ -56,7 +54,7 @@ if (isset($return['infoexterne']) AND isset($return['token']) AND isset($return[
$history = new OrderHistory();
$history->id_order = (int)($id_order);
$history->changeIdOrderState((int)($confs['EMC_ORDER_PAST_STATE']), (int)($history->id_order));
$history->id_employee = (int)($cookie->id_employee);
$history->id_employee = (int)$this->context->employee->id;
$history->addWithemail();
$db = Db::getInstance();
@@ -77,7 +75,7 @@ if (isset($return['infoexterne']) AND isset($return['token']) AND isset($return[
$history = new OrderHistory();
$history->id_order = (int)($id_order);
$history->changeIdOrderState((int)($confs['EMC_SEND_STATE']), (int)($history->id_order));
$history->id_employee = (int)($cookie->id_employee);
$history->id_employee = (int)$this->context->employee->id;
$history->addWithemail();
break;
// Cancel
@@ -94,7 +92,7 @@ if (isset($return['infoexterne']) AND isset($return['token']) AND isset($return[
$history = new OrderHistory();
$history->id_order = (int)($id_order);
$history->changeIdOrderState((int)($confs['EMC_DELIVERY_STATE']), (int)($history->id_order));
$history->id_employee = (int)($cookie->id_employee);
$history->id_employee = (int)$this->context->employee->id;
$history->addWithemail();
break;
}