//fixed small bug when added new Shop URL

This commit is contained in:
vAugagneur
2013-02-28 18:25:13 +01:00
parent 74a8fc6ef5
commit dc4a70dcf9
2 changed files with 6 additions and 1 deletions
@@ -360,6 +360,10 @@ class AdminShopUrlControllerCore extends AdminController
public function processAdd()
{
$object = $this->loadObject(true);
if ($object->canAddThisUrl(Tools::getValue('domain'), Tools::getValue('domain_ssl'), Tools::getValue('physical_uri'), Tools::getValue('virtual_uri')))
$this->errors[] = Tools::displayError('A shop URL that use this domain and uri already exists');
if ($object->id && Tools::getValue('main'))
$object->setMain();