[-] BO : fixed Duplicate entry for key 'full_shop_url' when added new shop url
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13687 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user