BUGFIX Correct redirection URL on deletion in GridFieldDetailForm

This commit is contained in:
Ingo Schommer 2012-11-09 23:05:06 +01:00 committed by Sam Minnee
parent bd0e597ac6
commit 434759cc83

View File

@ -377,10 +377,10 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler {
} elseif($this->popupController->hasMethod('Breadcrumbs')) {
$parents = $this->popupController->Breadcrumbs(false)->items;
$backlink = array_pop($parents)->Link;
} else {
$backlink = $toplevelController->Link();
}
}
if(!$backlink) $backlink = $toplevelController->Link();
return $backlink;
}