mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
fix related model update when deferred binding
This commit is contained in:
parent
0f630c80d9
commit
a20712b73c
@ -904,7 +904,7 @@ class RelationController extends ControllerBehavior
|
||||
$saveData = $this->manageWidget->getSaveData();
|
||||
|
||||
if ($this->viewMode == 'multi') {
|
||||
$model = $this->relationObject->find($this->manageId);
|
||||
$model = $this->relationModel->find($this->manageId);
|
||||
$model->save($saveData, $this->manageWidget->getSessionKey());
|
||||
}
|
||||
elseif ($this->viewMode == 'single') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user