diff --git a/src/fields/BaseRelationField.php b/src/fields/BaseRelationField.php index 45500a50e64..5a522a6cd70 100644 --- a/src/fields/BaseRelationField.php +++ b/src/fields/BaseRelationField.php @@ -513,7 +513,7 @@ public function modifyElementsQuery(ElementQueryInterface $query, $value) "elements_$ns.dateDeleted" => null, "elements_sites_$ns.siteId" => $this->_targetSiteId() ?? new Expression('[[elements_sites.siteId]]'), "elements_sites_$ns.enabled" => true, - ]) + ]), ]; if ($emptyCondition === ':notempty:') {