fix related model update when deferred binding

This commit is contained in:
plexnum 2015-04-09 07:28:01 +03:00
parent 0f630c80d9
commit a20712b73c

View File

@ -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') {