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:
Damian Mooyman 2016-04-04 11:56:11 +12:00
commit 4cd29e80b7

View File

@ -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 {