[-] 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:
vAugagneur
2012-02-28 14:19:31 +00:00
parent 607af2bb44
commit 47c42de03f
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();