// Fix #PSCFV-4327

This commit is contained in:
rGaillard
2012-09-25 17:10:10 +00:00
parent ee8d2f6e26
commit 98e9c23062
+2 -2
View File
@@ -192,14 +192,14 @@ class AdminOrdersControllerCore extends AdminController
if ($this->display == 'view')
{
$order = new Order((int)Tools::getValue('id_order'));
if ($order->hasBeenDelivered())
if ($order->hasBeenShipped())
$type = $this->l('Return products');
elseif ($order->hasBeenPaid())
$type = $this->l('Standard refund');
else
$type = $this->l('Cancel products');
if (!$order->hasBeenDelivered() && !$this->lite_display)
if (!$order->hasBeenShipped() && !$this->lite_display)
$this->toolbar_btn['new'] = array(
'short' => 'Create',
'href' => '#',