From edd5588f6863d5ace53d013473f7225ed705dc13 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Sun, 13 Nov 2011 19:44:49 +0000 Subject: [PATCH] // die2Exception --- controllers/admin/AdminOrdersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index 3d8994e1a..9cc9c34b1 100755 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -125,7 +125,7 @@ class AdminOrdersControllerCore extends AdminController if ($this->tabAccess['edit'] === '1') { if (!$order->hasBeenShipped()) - die(Tools::displayError('The shipping number can only be set once the order has been shipped.')); + throw new PrestashopException('The shipping number can only be set once the order has been shipped.'); $_GET['view'.$this->table] = true; $shipping_number = pSQL(Tools::getValue('shipping_number'));