In the field settings, "Render Views filters as select list" does not result in a select list in the exposed filter of an entity reference field using a taxonomy. Only a text field is exposed which takes the term ID's.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Yuri’s picture

Can anyone confirm this is the case...it appears like this in my sites and I would like to know if this is a bug.

kitikonti’s picture

Also dont work for me

haydeniv’s picture

Status: Active » Closed (duplicate)
FileSize
11.29 KB

As described here #1392702-30: Entity Reference does not offer select list as a views exposed filter, only text field for id number comments 30-31

You may want to revisit the Manage fields page, and tick a new option:

Enable Render Views filters as select list

at the end of the field edit page:
admin/structure/types/manage/TYPE/fields/field_NAME

After doing that you may run into the problems described here: #1778368: Views filter as select list does not work due to "The operator is invalid on filter"

Just edit the exposed filter in the view and resave the view.

kitikonti’s picture

I already have the "Render views filter as select list" enabled. And no i dont get the error from your linked issue. But with this config i still get no select list. But if i check the "Output filter as hierarchical select" option in the filter settings i get a select list. Did not know that this is also required.
But now i have another problem, in the default state the filter shows "-Any-" where i get no results. I only get results if i set a filter. If i have more filters i will have to filter with everyone of them to get a result. Not very nice.

haydeniv’s picture

Status: Closed (duplicate) » Active

Can you provide some screenshots of what you are seeing? Also please include the version number of Drupal, entity reference, and views modules.

haydeniv’s picture

Category: Bug report » Support request
kitikonti’s picture

FileSize
115.89 KB
39.14 KB
81.26 KB
32.49 KB

So i have made a new clean view to ensure there are no other config mistakes. Here a view screenshots. First of the Field settings, second of the view filter settings, third of the view general settings (with the empty preview) and the last with a preview with results because i set a filter.
Field settings
Field settings

Filter settings
Filter settings

View general settings
View settings

View with set filter and results
View with set filter and results

kitikonti’s picture

Category: Support request » Bug report
Status: Active » Closed (duplicate)

Ahh and i forget the Module/Core Versions. Its always the latest stable/recommended version.

  • Drupal 7.32
  • Views 7.x-3.8
  • Entity API 7.x-1.5
  • Entity Reference 7.x-1.1
kitikonti’s picture

Category: Bug report » Support request
Status: Closed (duplicate) » Active

Ähhhm dont know why the Metadate was changed, change it back again.

haydeniv’s picture

Would you be able to upgrade to Entity Reference 7.x-1.x-dev on a test site and see if you are still experiencing the problem?

kitikonti’s picture

Hmm strange on a completly new drupal installation it works with the latest stable/recommended versions. I also enabled entity translation and setup the vocabolary as translatable. but this also works. i will do more tests tomorrow :-) -> now 00:00

haydeniv’s picture

Status: Active » Closed (works as designed)

I'm going to close this for now. Feel free to reopen.

kitikonti’s picture

Maybe i have found the problem, it seems there is a incompatibility to the shs module.

kitikonti’s picture

I have found a related issue by the shs module.