From 2316bb50ba7b65cf92d6a284c38eec7dac14de5a Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 2 Dec 2013 18:53:37 +0100 Subject: [PATCH] // Fixed import button in AdminImport --- .../default/template/controllers/import/helpers/view/view.tpl | 1 + controllers/admin/AdminImportController.php | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/import/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/import/helpers/view/view.tpl index d8f589b60..45d217ec8 100644 --- a/admin-dev/themes/default/template/controllers/import/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/import/helpers/view/view.tpl @@ -95,6 +95,7 @@ {l s='Column'}   {l s='must be set'}
+ diff --git a/controllers/admin/AdminImportController.php b/controllers/admin/AdminImportController.php index 85224e787..6d0a7dfb4 100644 --- a/controllers/admin/AdminImportController.php +++ b/controllers/admin/AdminImportController.php @@ -3030,9 +3030,8 @@ class AdminImportControllerCore extends AdminController $this->errors[] = Tools::displayError('This functionality has been disabled.'); return; } - /* PrestaShop demo mode*/ - if (Tools::getValue('import')) + if (Tools::getValue('submitImportFile')) { // Check if the CSV file exist if (Tools::getValue('csv'))