Apply same fix from 5a843bc to the create action as well

This commit is contained in:
Ben Thomson 2020-08-24 15:16:01 +08:00
parent d3e346013d
commit e384a37457
No known key found for this signature in database
GPG Key ID: 8BDB18DD0909BE22

View File

@ -1113,7 +1113,7 @@ class RelationController extends ControllerBehavior
$this->relationObject->add($newModel, $sessionKey);
}
elseif ($this->viewMode == 'single') {
$newModel = $this->manageWidget->model;
$newModel = $this->viewModel = $this->viewWidget->model = $this->manageWidget->model;
$this->viewWidget->setFormValues($saveData);
/*