From fd5894d680f72bc68d489dd52e733fcd266ea8d6 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Wed, 8 Aug 2012 09:49:34 +0000 Subject: [PATCH] [-] BO : fixed bug #PSCFV-3541 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16760 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminCurrenciesController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/admin/AdminCurrenciesController.php b/controllers/admin/AdminCurrenciesController.php index dfe543918..8f310edc1 100644 --- a/controllers/admin/AdminCurrenciesController.php +++ b/controllers/admin/AdminCurrenciesController.php @@ -303,6 +303,8 @@ class AdminCurrenciesControllerCore extends AdminController else $this->errors[] = Tools::displayError('You do not have permission to edit here.'); } + if (Tools::isSubmit('submitAddcurrency') && !Tools::getValue('id_currency') && Currency::exists(Tools::getValue('iso_code'), Tools::getValue('iso_code_num'))) + $this->errors[] = Tools::displayError('This currency already exist.'); parent::initProcess(); } }