core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php | 2 +- .../test_views/views.view.test_filter_taxonomy_index_tid.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php b/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php index 78954f0..9bad607 100644 --- a/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php +++ b/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php @@ -385,7 +385,7 @@ public function calculateDependencies() { $dependencies[$vocabulary->getConfigDependencyKey()][] = $vocabulary->getConfigDependencyName(); $term_storage = \Drupal::entityManager()->getStorage('taxonomy_term'); - foreach (array_keys($this->options['value']) as $tid) { + foreach ($this->options['value'] as $tid) { $term = $term_storage->load($tid); $dependencies[$term->getConfigDependencyKey()][] = $term->getConfigDependencyName(); } diff --git a/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_filter_taxonomy_index_tid.yml b/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_filter_taxonomy_index_tid.yml index 7671e0f..4e7e83f 100644 --- a/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_filter_taxonomy_index_tid.yml +++ b/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_filter_taxonomy_index_tid.yml @@ -132,7 +132,7 @@ display: admin_label: '' operator: or value: - 2: '2' + - 2 group: 1 exposed: false expose: