diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/wizard/Node.php b/core/modules/node/lib/Drupal/node/Plugin/views/wizard/Node.php index cce65c2..e3ea3df 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/wizard/Node.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/wizard/Node.php @@ -305,7 +305,7 @@ protected function build_filters(&$form, &$form_state) { $form['displays']['show']['tagged_with'] = array( '#type' => 'textfield', '#title' => t('tagged with'), - '#autocomplete_path' => 'taxonomy/autocomplete/' . $tag_field_name . '/' . $entity_type . '/' . $bundle_names[$tag_field_name], + '#autocomplete_path' => 'taxonomy/autocomplete/' . $tag_field_name . '/' . $this->entity_type . '/' . $bundle_names[$tag_field_name], '#size' => 30, '#maxlength' => 1024, '#field_name' => $tag_field_name, diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php index ef7c440..55fd906 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php @@ -220,7 +220,7 @@ function testNodeTermCreationAndDeletion() { // Test autocomplete on term 4 - it is alphanumeric only, so no extra // quoting. $input = substr($term_objects['term4']->name, 0, 3); - $this->drupalGet('taxonomy/autocomplete/taxonomy_' . $this->vocabulary->id(), array('query' => array('q' => $input))); + $this->drupalGet('taxonomy/autocomplete/taxonomy_' . $this->vocabulary->id() . '/node/article', array('query' => array('q' => $input))); $this->assertRaw('{"' . $term_objects['term4']->name . '":"' . $term_objects['term4']->name . '"}', format_string('Autocomplete returns term %term_name after typing the first 3 letters.', array('%term_name' => $term_objects['term4']->name))); // Test taxonomy autocomplete with a nonexistent field.