[-] BO : fixed Duplicate entry for key 'full_shop_url' when added new shop url

This commit is contained in:
vAugagneur
2012-02-28 14:19:31 +00:00
parent 52f44c4e1b
commit e90f628b1e
2 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ class AdminShopUrlControllerCore extends AdminController
}
else if (Tools::isSubmit('submitAdd'.$this->table) && $this->tabAccess['add'] === '1')
{
if (ShopUrl::virtualUriExists(Tools::getValue('virtual_uri'), Tools::getValue('id_shop')))
if (ShopUrl::urlExists(Tools::getValue('domain'), Tools::getValue('physical_uri'), Tools::getValue('virtual_uri'), Tools::getValue('id_shop')))
$this->errors[] = Tools::displayError('Virtual URI already used.');
else
return parent::postProcess();