There was an error while loading. Please reload this page.
1 parent 3889afb commit 489b27bCopy full SHA for 489b27b
src/controllers/PartialUserFormController.php
@@ -69,9 +69,7 @@ public function partial(HTTPRequest $request)
69
70
// TODO: Recognize visitor with the password
71
// Set data record and load the form
72
-$record = DataObject::get_by_id($partial->UserDefinedFormClass, $partial->UserDefinedFormID);
73
-$controller = parent::create($record);
74
-$controller->doInit();
+ $this->dataRecord = DataObject::get_by_id($partial->UserDefinedFormClass, $partial->UserDefinedFormID);
75
$this->setFailover($this->dataRecord);
76
77
$form = $this->Form();
0 commit comments