Skip to content
Browse files

BUGFIX Redirecting to /index rather than deleted record view after Re…

…cordController->doDelete()

  • Loading branch information...
1 parent ad1643d commit 3f4397fabd4e8dc338eda93b39a5d3950ca1a448 @chillu committed May 11, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 code/RecordController.php
View
3 code/RecordController.php
@@ -155,7 +155,8 @@ public function doDelete($data, $form, $request) {
'good'
);
- Director::redirectBack();
+ // Redirect to overview
+ return $this->redirect($this->parentController->Link('index'));
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////

0 comments on commit 3f4397f

Please sign in to comment.
Something went wrong with that request. Please try again.