diff --git a/modules/backend/behaviors/RelationController.php b/modules/backend/behaviors/RelationController.php index 5a0963960..cab4f1d0e 100644 --- a/modules/backend/behaviors/RelationController.php +++ b/modules/backend/behaviors/RelationController.php @@ -580,9 +580,11 @@ class RelationController extends ControllerBehavior $widget = $this->makeWidget('Backend\Widgets\Lists', $config); $widget->bindEvent('list.extendQuery', function ($query) { $this->controller->relationExtendQuery($query, $this->field); - $this->relationObject->setQuery($query); - if ($sessionKey = $this->relationGetSessionKey()) { + + $sessionKey = $this->deferredBinding ? $this->relationGetSessionKey() : null; + + if ($sessionKey) { $this->relationObject->withDeferred($sessionKey); } elseif ($this->model->exists) {