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(); } }