diff --git a/core/lib/Drupal/Core/Config/Entity/Query/Query.php b/core/lib/Drupal/Core/Config/Entity/Query/Query.php index 38a989c..6921e7a 100644 --- a/core/lib/Drupal/Core/Config/Entity/Query/Query.php +++ b/core/lib/Drupal/Core/Config/Entity/Query/Query.php @@ -156,8 +156,9 @@ protected function loadRecords() { } } } - // Save other ID conditions for narrowing down later. - elseif ($condition['field'] == $id_key) { + // Save the first ID condition that is not an 'IN' or '=' for narrowing + // down later. + elseif (!$id_condition && $condition['field'] == $id_key) { $id_condition = $condition; } // We stop at the first restricting condition on name. In the case where