// Context part 25
This commit is contained in:
@@ -52,7 +52,7 @@ class AdminOrdersStates extends AdminTab
|
||||
|
||||
public function postProcess()
|
||||
{
|
||||
$context = Context::getContext();
|
||||
$this->context = Context::getContext();
|
||||
if (Tools::isSubmit('submitAdd'.$this->table))
|
||||
{
|
||||
$_POST['invoice'] = Tools::getValue('invoice');
|
||||
@@ -69,7 +69,7 @@ class AdminOrdersStates extends AdminTab
|
||||
}
|
||||
elseif (isset($_GET['delete'.$this->table]))
|
||||
{
|
||||
$orderState = new OrderState($_GET['id_order_state'], $context->language->id);
|
||||
$orderState = new OrderState($_GET['id_order_state'], $this->context->language->id);
|
||||
if (!$orderState->isRemovable())
|
||||
$this->_errors[] = $this->l('For security reasons, you cannot delete default order statuses.');
|
||||
else
|
||||
@@ -79,7 +79,7 @@ class AdminOrdersStates extends AdminTab
|
||||
{
|
||||
foreach ($_POST[$this->table.'Box'] AS $selection)
|
||||
{
|
||||
$orderState = new OrderState($selection, $context->language->id);
|
||||
$orderState = new OrderState($selection, $this->context->language->id);
|
||||
if (!$orderState->isRemovable())
|
||||
{
|
||||
$this->_errors[] = $this->l('For security reasons, you cannot delete default order statuses.');
|
||||
|
||||
Reference in New Issue
Block a user