mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Commit deferred bindings on model created with RelationController (#3843)
Fixes #3829. Credit to @iotch. Tested by the fantastic Octodock provided by @petehalverson
This commit is contained in:
parent
813721edf1
commit
69a26aa8f2
@ -1032,7 +1032,7 @@ class RelationController extends ControllerBehavior
|
||||
* Has one relations will save as part of the add() call.
|
||||
*/
|
||||
if ($this->deferredBinding || $this->relationType != 'hasOne') {
|
||||
$newModel->save();
|
||||
$newModel->save(null, $this->manageWidget->getSessionKey());
|
||||
}
|
||||
|
||||
$this->relationObject->add($newModel, $sessionKey);
|
||||
|
Loading…
x
Reference in New Issue
Block a user