Skip to content

Commit 489b27b

Browse files
committed
Revert "Update src/controllers/PartialUserFormController.php"
This reverts commit 3889afb.
1 parent 3889afb commit 489b27b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/controllers/PartialUserFormController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ public function partial(HTTPRequest $request)
6969

7070
// TODO: Recognize visitor with the password
7171
// 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();
72+
$this->dataRecord = DataObject::get_by_id($partial->UserDefinedFormClass, $partial->UserDefinedFormID);
7573
$this->setFailover($this->dataRecord);
7674

7775
$form = $this->Form();

0 commit comments

Comments
 (0)