//fix preview product url in BO
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15935 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -2306,7 +2306,7 @@ class AdminProductsControllerCore extends AdminController
|
||||
{
|
||||
if (!ShopUrl::getMainShopDomain())
|
||||
return false;
|
||||
|
||||
$is_rewrite_active = (bool)Configuration::get('PS_REWRITING_SETTINGS');
|
||||
$preview_url = $this->context->link->getProductLink(
|
||||
$product,
|
||||
$this->getFieldValue($product, 'link_rewrite', $this->context->language->id),
|
||||
@@ -2315,9 +2315,8 @@ class AdminProductsControllerCore extends AdminController
|
||||
null,
|
||||
Context::getContext()->shop->id,
|
||||
0,
|
||||
true
|
||||
$is_rewrite_active
|
||||
);
|
||||
|
||||
if (!$product->active)
|
||||
{
|
||||
$preview_url = $this->context->link->getProductLink(
|
||||
|
||||
Reference in New Issue
Block a user