// BugFix : Adding an error when you try to update a shop_url already existing in another shop

This commit is contained in:
vChabot
2011-12-28 15:24:47 +00:00
parent 9e291b0a1b
commit 9ecde25550
2 changed files with 25 additions and 0 deletions
@@ -258,6 +258,13 @@ class AdminShopUrlControllerCore extends AdminController
else
$this->_errors[] = Tools::displayError('You do not have permission to edit here.');
}
else if (Tools::isSubmit('submitAdd'.$this->table) && $this->tabAccess['add'] === '1')
{
if (ShopUrl::virtualUriExists(Tools::getValue('virtual_uri'), Tools::getValue('id_shop')))
$this->_errors[] = Tools::displayError('Virtual URI already used.');
else
return parent::postProcess();
}
else
return parent::postProcess();
}