diff --git a/admin-dev/themes/template/helper/list/list_action_supply_order_create_from_template.tpl b/admin-dev/themes/template/helper/list/list_action_supply_order_create_from_template.tpl index ed1c0474d..3fd3bc783 100644 --- a/admin-dev/themes/template/helper/list/list_action_supply_order_create_from_template.tpl +++ b/admin-dev/themes/template/helper/list/list_action_supply_order_create_from_template.tpl @@ -23,5 +23,5 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} - + {$action} diff --git a/controllers/admin/AdminSupplyOrdersController.php b/controllers/admin/AdminSupplyOrdersController.php index 96d0bca5d..df6f1c5d1 100644 --- a/controllers/admin/AdminSupplyOrdersController.php +++ b/controllers/admin/AdminSupplyOrdersController.php @@ -1162,10 +1162,14 @@ class AdminSupplyOrdersControllerCore extends AdminController if (!array_key_exists('CreateSupplyOrder', self::$cache_lang)) self::$cache_lang['CreateSupplyOrder'] = $this->l('Use this template to create a supply order'); + if (!array_key_exists('CreateSupplyOrderConfirm', self::$cache_lang)) + self::$cache_lang['CreateSupplyOrderConfirm'] = $this->l('Are you sure you want to use this template?'); + $this->context->smarty->assign(array( 'href' => self::$currentIndex. '&'.$this->identifier.'='.$id. '&create_supply_order&token='.($token != null ? $token : $this->token), + 'confirm' => self::$cache_lang['CreateSupplyOrderConfirm'], 'action' => self::$cache_lang['CreateSupplyOrder'], ));