// Fix #PSCFV-4327
This commit is contained in:
@@ -192,14 +192,14 @@ class AdminOrdersControllerCore extends AdminController
|
|||||||
if ($this->display == 'view')
|
if ($this->display == 'view')
|
||||||
{
|
{
|
||||||
$order = new Order((int)Tools::getValue('id_order'));
|
$order = new Order((int)Tools::getValue('id_order'));
|
||||||
if ($order->hasBeenDelivered())
|
if ($order->hasBeenShipped())
|
||||||
$type = $this->l('Return products');
|
$type = $this->l('Return products');
|
||||||
elseif ($order->hasBeenPaid())
|
elseif ($order->hasBeenPaid())
|
||||||
$type = $this->l('Standard refund');
|
$type = $this->l('Standard refund');
|
||||||
else
|
else
|
||||||
$type = $this->l('Cancel products');
|
$type = $this->l('Cancel products');
|
||||||
|
|
||||||
if (!$order->hasBeenDelivered() && !$this->lite_display)
|
if (!$order->hasBeenShipped() && !$this->lite_display)
|
||||||
$this->toolbar_btn['new'] = array(
|
$this->toolbar_btn['new'] = array(
|
||||||
'short' => 'Create',
|
'short' => 'Create',
|
||||||
'href' => '#',
|
'href' => '#',
|
||||||
|
|||||||
Reference in New Issue
Block a user