Browse files

BUGFIX Correct redirection URL on deletion in GridFieldDetailForm

  • Loading branch information...
1 parent bd0e597 commit 434759cc83e902dce660bf1b130672246ac73f57 @chillu chillu committed with sminnee Nov 9, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 forms/gridfield/GridFieldDetailForm.php
View
6 forms/gridfield/GridFieldDetailForm.php
@@ -377,10 +377,10 @@ protected function getBackLink(){
} 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;
}

0 comments on commit 434759c

Please sign in to comment.