mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Correct redirection URL on deletion in GridFieldDetailForm
This commit is contained in:
parent
bd0e597ac6
commit
434759cc83
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user