From 5fa1633fe50785c10b8b051de99aa4a62ab6232c Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 15 Jun 2012 17:50:18 +0200 Subject: [PATCH] MINOR Saving UploadField detail form correctly when nested in GridField --- forms/UploadField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/UploadField.php b/forms/UploadField.php index cb0683328..d978ef47e 100644 --- a/forms/UploadField.php +++ b/forms/UploadField.php @@ -848,7 +848,7 @@ class UploadField_ItemHandler extends RequestHandler { $form->sessionMessage(_t('UploadField.Saved', 'Saved'), 'good'); - return $this->parent->getForm()->Controller()->redirectBack(); + return $this->edit($request); } }