diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php index 1d46fab..9a7fd4b 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php @@ -556,6 +556,7 @@ protected function row_style_options() { */ protected function build_filters(&$form, &$form_state) { // Find all the fields we are allowed to filter by. + module_load_include('inc', 'views_ui', 'admin'); $fields = views_fetch_fields($this->base_table, 'filter'); $bundles = entity_get_bundles($this->entity_type); @@ -822,6 +823,7 @@ protected function default_display_filters_user(array $form, array &$form_state) // Figure out the table where $bundle_key lives. It may not be the same as // the base table for the view; the taxonomy vocabulary machine_name, for // example, is stored in taxonomy_vocabulary, not taxonomy_term_data. + module_load_include('inc', 'views_ui', 'admin'); $fields = views_fetch_fields($this->base_table, 'filter'); if (isset($fields[$this->base_table . '.' . $bundle_key])) { $table = $this->base_table;