From 07120018bf0151e5435726bde0dd75ff7365bf57 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Wed, 3 Jun 2009 01:47:36 +0000 Subject: [PATCH] BUGFIX: MultiFormStep::saveInto() need the current Controller as the new $form Controller to work --- code/MultiFormStep.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/MultiFormStep.php b/code/MultiFormStep.php index 687a251..20ed133 100644 --- a/code/MultiFormStep.php +++ b/code/MultiFormStep.php @@ -171,7 +171,7 @@ class MultiFormStep extends DataObject { */ public function saveInto($obj) { $form = new Form( - new Controller(), + Controller::curr(), 'Form', $this->getFields(), new FieldSet()