From 98e9c23062edfc189664b9bd96cc8b0df78e2edd Mon Sep 17 00:00:00 2001 From: rGaillard Date: Tue, 25 Sep 2012 17:10:10 +0000 Subject: [PATCH] // Fix #PSCFV-4327 --- controllers/admin/AdminOrdersController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index 011326285..e5abef902 100755 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -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' => '#',