[-] 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:
vAugagneur
2012-09-26 12:40:37 +00:00
parent 3fae760e85
commit f272612eef
+1 -1
View File
@@ -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'];