Problem/Motivation

Hi, sorry for my bad english.

I need a view that filters media based on a fixed directory, but when I add the filter to the view I get an invalid value error on the filter (which doesn't happen if I expose the filter)

Steps to reproduce

- I have a hierarchical taxonomy configured as directory structure on /admin/config/media/media_directories
- I create a view that list medias as rendered entity
- I add a "Media directory filter" and select a single taxonomy term of the taxonomy (in this case a leaf)
- on saving I get the error in question and the filter shows (= unknown)

Proposed resolution

In the next comment a proposed patch

Comments

robertom created an issue. See original summary.

robertom’s picture

Status: Active » Needs review
StatusFileSize
new2.93 KB

Attached a proposed patch

ytsurk’s picture

Thank you for the report + patch.

I hope I find time soon to have a closer look ...

ytsurk’s picture

Status: Needs review » Reviewed & tested by the community

Contextual filter would have worked ;)

The patch seems good to me, and solves the issue by properly storing the value options.

  • ytsurk committed 88e05ef on 2.x
    Issue #3247415 by robertom, ytsurk: No valid values found on filter
    
ytsurk’s picture

Status: Reviewed & tested by the community » Fixed
ytsurk’s picture

Sorry for not setting you as author robertom.

  • ytsurk committed 88041df on 2.x
    Fixes issues resulting from the mix of #3251250 and #3247415
    

  • ytsurk committed c09e90f on 2.x
    Fixes warnings on install caused by #3247415
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.