mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed empty breadcrumbs in AssetAdmin when using non-existent (singleton) record as the "current record"
This commit is contained in:
parent
7f7d6b3bea
commit
1b600a0b09
@ -514,7 +514,7 @@ class LeftAndMain extends Controller {
|
|||||||
))
|
))
|
||||||
));
|
));
|
||||||
$record = $this->currentPage();
|
$record = $this->currentPage();
|
||||||
if($record) {
|
if($record && $record->exists()) {
|
||||||
if($record->hasExtension('Hierarchy')) {
|
if($record->hasExtension('Hierarchy')) {
|
||||||
$ancestors = $record->getAncestors();
|
$ancestors = $record->getAncestors();
|
||||||
$ancestors = new ArrayList(array_reverse($ancestors->toArray()));
|
$ancestors = new ArrayList(array_reverse($ancestors->toArray()));
|
||||||
|
Loading…
Reference in New Issue
Block a user