Permalink
Browse files

MINOR Saving UploadField detail form correctly when nested in GridField

  • Loading branch information...
1 parent eff93bd commit 5fa1633fe50785c10b8b051de99aa4a62ab6232c @chillu chillu committed Jun 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 forms/UploadField.php
View
@@ -848,7 +848,7 @@ public function doEdit(array $data, Form $form, SS_HTTPRequest $request) {
$form->sessionMessage(_t('UploadField.Saved', 'Saved'), 'good');
- return $this->parent->getForm()->Controller()->redirectBack();
+ return $this->edit($request);
}
}

0 comments on commit 5fa1633

Please sign in to comment.