Projekt

Allgemein

Profil

GX-Bug #52567 » BreadcrumbFix.patch

Till Tepelmann, 19.07.2017 13:07

Unterschiede anzeigen:

src/includes/application_top.php (revision )
1576 1576
		
1577 1577
		return $parentId === 0 ? $parentIds : getParentCategoryIds($parentId, $parentIds);
1578 1578
	}
1579
	
1579

  
1580 1580
	return $parentIds;
1581 1581
}
1582 1582

  
......
1615 1615
	// it is required that we are on the products details page and the product is linked in the category
1616 1616
	if(isset($actual_products_id) && isProductInCategory($actual_products_id, $_SESSION['breadcrumb_history']['catId']))
1617 1617
	{
1618
		$categoryIds   = getParentCategoryIds($_SESSION['breadcrumb_history']['catId']);
1619
		$categoryNames = getCategoryNames(array_reverse($categoryIds));
1618
		$categoryIds   = array_reverse(getParentCategoryIds($_SESSION['breadcrumb_history']['catId']));
1619
		$categoryNames = getCategoryNames($categoryIds);
1620 1620

  
1621 1621
		foreach($categoryNames as $key => $categoryName)
1622 1622
		{
    (1-1/1)