diff --git a/core/modules/system/src/Tests/Entity/EntityCrudHookTest.php b/core/modules/system/src/Tests/Entity/EntityCrudHookTest.php index 534385f..66443bb 100644 --- a/core/modules/system/src/Tests/Entity/EntityCrudHookTest.php +++ b/core/modules/system/src/Tests/Entity/EntityCrudHookTest.php @@ -384,7 +384,7 @@ public function testTaxonomyTermHooks() { 'entity_crud_hook_test_entity_insert called for type taxonomy_term', )); - $_SESSION['entity_crud_hook_test'] = array(); + $GLOBALS['entity_crud_hook_test'] = array(); $term = Term::load($term->id()); $this->assertHookMessageOrder(array( diff --git a/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php b/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php index cfd46a1..40df1a1 100644 --- a/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php +++ b/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php @@ -138,7 +138,6 @@ public function query($group_by = FALSE) { } function title() { - $term = $this->termStorage->load($this->argument); if (!empty($term)) { return String::checkPlain($term->getName());