[-] BO : fixed bug #PSCFV-9782 - live edit bug with multistore
This commit is contained in:
@@ -53,6 +53,8 @@ class CategoryControllerCore extends FrontController
|
||||
|
||||
public function canonicalRedirection($canonicalURL = '')
|
||||
{
|
||||
if (Tools::getValue('live_edit'))
|
||||
return ;
|
||||
if (!Validate::isLoadedObject($this->category) || !$this->category->inShop() || !$this->category->isAssociatedToShop())
|
||||
{
|
||||
$this->redirect_after = '404';
|
||||
|
||||
@@ -33,6 +33,8 @@ class CmsControllerCore extends FrontController
|
||||
|
||||
public function canonicalRedirection($canonicalURL = '')
|
||||
{
|
||||
if (Tools::getValue('live_edit'))
|
||||
return ;
|
||||
if (Validate::isLoadedObject($this->cms) && ($canonicalURL = $this->context->link->getCMSLink($this->cms)))
|
||||
parent::canonicalRedirection($canonicalURL);
|
||||
else if (Validate::isLoadedObject($this->cms_category) && ($canonicalURL = $this->context->link->getCMSCategoryLink($this->cms_category)))
|
||||
|
||||
@@ -40,6 +40,8 @@ class ManufacturerControllerCore extends FrontController
|
||||
|
||||
public function canonicalRedirection($canonicalURL = '')
|
||||
{
|
||||
if (Tools::getValue('live_edit'))
|
||||
return ;
|
||||
if (Validate::isLoadedObject($this->manufacturer))
|
||||
parent::canonicalRedirection($this->context->link->getManufacturerLink($this->manufacturer));
|
||||
}
|
||||
|
||||
@@ -69,6 +69,8 @@ class ProductControllerCore extends FrontController
|
||||
|
||||
public function canonicalRedirection($canonical_url = '')
|
||||
{
|
||||
if (Tools::getValue('live_edit'))
|
||||
return ;
|
||||
if (Validate::isLoadedObject($this->product))
|
||||
parent::canonicalRedirection($this->context->link->getProductLink($this->product));
|
||||
}
|
||||
|
||||
@@ -41,6 +41,8 @@ class SupplierControllerCore extends FrontController
|
||||
|
||||
public function canonicalRedirection($canonicalURL = '')
|
||||
{
|
||||
if (Tools::getValue('live_edit'))
|
||||
return ;
|
||||
if (Validate::isLoadedObject($this->supplier))
|
||||
parent::canonicalRedirection($this->context->link->getSupplierLink($this->supplier));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user