Skip to content
Permalink
Browse files

BUGFIX Correct redirection URL on deletion in GridFieldDetailForm

  • Loading branch information...
chillu authored and sminnee committed Nov 9, 2012
1 parent bd0e597 commit 434759cc83e902dce660bf1b130672246ac73f57
Showing with 3 additions and 3 deletions.
  1. +3 −3 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.
You can’t perform that action at this time.