Skip to content
Snippets Groups Projects
Commit 79a17dbe authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#170309 by Jaza, keith.smith, naquah, pwolanin, Nick Urban, Pasqualle:...

#170309 by Jaza, keith.smith, naquah, pwolanin, Nick Urban, Pasqualle: menu_set_active_trail() does not allways include all items; fixing breadcrumbs to include parants properly
parent 3022dc78
No related branches found
No related tags found
No related merge requests found
......@@ -1522,10 +1522,10 @@ function menu_set_active_trail($new_trail = NULL) {
$curr = FALSE;
}
else {
// Move to the child link if it's in the active trail.
if ($curr['below'] && $curr['link']['in_active_trail']) {
// Add the link if it's in the active trail, then move to the link below.
if ($curr['link']['in_active_trail']) {
$trail[] = $curr['link'];
$tree = $curr['below'];
$tree = $curr['below'] ? $curr['below'] : array();
}
list($key, $curr) = each($tree);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment