[-] BO : fixed bug #PSCFV-3541

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16760 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-08-08 09:49:34 +00:00
parent e25bf37349
commit fd5894d680
@@ -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();
}
}