mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
This really shouldn't be here
This commit is contained in:
parent
ea686ab120
commit
3866ccbb20
@ -617,9 +617,8 @@ class RelationController extends ControllerBehavior
|
||||
* Single (belongs to, has one)
|
||||
*/
|
||||
elseif ($this->viewMode == 'single') {
|
||||
$query = $this->relationObject;
|
||||
$this->controller->relationExtendQuery($query, $this->field);
|
||||
$this->viewModel = $query->getResults() ?: $this->relationModel;
|
||||
$this->viewModel = $this->relationObject->getResults()
|
||||
?: $this->relationModel;
|
||||
|
||||
$config = $this->makeConfigForMode('view', 'form');
|
||||
$config->model = $this->viewModel;
|
||||
|
Loading…
x
Reference in New Issue
Block a user