Commit 4ed1d563 authored by Tino Goratsch's avatar Tino Goratsch

fixed a bug in the breadcrumb steps class

parent ead7b1aa
......@@ -123,7 +123,6 @@ class Steps
$this->buildBreadcrumbCacheForFrontend();
}
$this->breadcrumbCache = $this->steps;
$this->breadcrumbCache[count($this->breadcrumbCache) - 1]['last'] = true;
}
......@@ -132,7 +131,6 @@ class Steps
*/
private function buildBreadcrumbCacheForAdmin()
{
// No breadcrumb steps have been set yet
if (empty($this->steps)) {
$this->eventDispatcher->dispatch(
'core.breadcrumb.steps.build_admin_cache_empty_steps_before',
......@@ -156,6 +154,8 @@ class Steps
new StepsBuildCacheEvent($this)
);
}
$this->breadcrumbCache = $this->steps;
}
private function appendControllerActionBreadcrumbs()
......@@ -216,6 +216,8 @@ class Steps
$this->appendControllerActionBreadcrumbs();
}
$this->breadcrumbCache = $this->steps;
}
/**
......
......@@ -66,7 +66,7 @@ class Details extends Core\Controller\FrontendAction
{
if ($this->articleRepository->resultExists($id, $this->date->getCurrentDateTime()) === true) {
$article = $this->articlesCache->getCache($id);
$this->breadcrumb->replaceAncestor($article['title'], '', true);
return [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment