[-] BO : fixed bug #PSCFV-4373
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17558 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+1
-1
@@ -109,7 +109,6 @@ class LinkCore
|
||||
$params['id'] = $product->id;
|
||||
$params['rewrite'] = (!$alias) ? $product->getFieldByLang('link_rewrite') : $alias;
|
||||
$params['ean13'] = (!$ean13) ? $product->ean13 : $ean13;
|
||||
$params['category'] = (!$category) ? $product->category : $category;
|
||||
$params['meta_keywords'] = Tools::str2url($product->getFieldByLang('meta_keywords'));
|
||||
$params['meta_title'] = Tools::str2url($product->getFieldByLang('meta_title'));
|
||||
|
||||
@@ -130,6 +129,7 @@ class LinkCore
|
||||
|
||||
if ($dispatcher->hasKeyword('product_rule', $id_lang, 'categories'))
|
||||
{
|
||||
$params['category'] = (!$category) ? $product->category : $category;
|
||||
$cats = array();
|
||||
foreach ($product->getParentCategories() as $cat)
|
||||
$cats[] = $cat['link_rewrite'];
|
||||
|
||||
Reference in New Issue
Block a user