mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #5252 from SilbinaryWolf/breadcrumb-title-bug
Fixed bug where breadcrumb title wouldn't appear if title was blank
This commit is contained in:
commit
4cd29e80b7
@ -680,8 +680,9 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler {
|
||||
|
||||
$items = $this->popupController->Breadcrumbs($unlinked);
|
||||
if($this->record && $this->record->ID) {
|
||||
$title = ($this->record->Title) ? $this->record->Title : "#{$this->record->ID}";
|
||||
$items->push(new ArrayData(array(
|
||||
'Title' => $this->record->Title,
|
||||
'Title' => $title,
|
||||
'Link' => $this->Link()
|
||||
)));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user