mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR LeftAndMain->Breadcrumbs() ordering
This commit is contained in:
parent
f67cca321c
commit
af9e46af74
@ -516,6 +516,7 @@ class LeftAndMain extends Controller {
|
||||
if($record) {
|
||||
if($record->hasExtension('Hierarchy')) {
|
||||
$ancestors = $record->getAncestors();
|
||||
$ancestors = new ArrayList(array_reverse($ancestors->toArray()));
|
||||
$ancestors->push($record);
|
||||
foreach($ancestors as $ancestor) {
|
||||
$items->push(new ArrayData(array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user