fix opening on order status updating

This commit is contained in:
Marion Muszynski 2017-03-23 15:02:55 +01:00
parent e9aec9809c
commit dde5791b86

View File

@ -652,9 +652,9 @@ class Loyalty extends Module
die(Tools::displayError('Missing parameters'));
$newOrder = $params['newOrderStatus'];
$order = new Order((int)($params['id_order']));
if ($order->id_lang == 3) {
return true;
}
// if ($order->id_lang == 3) {
// return true;
// }
if ($order AND !Validate::isLoadedObject($order))
die(Tools::displayError('Incorrect object Order.'));
$this->instanceDefaultStates();