Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
If a view has exposed filters, and a form alter changes $form['#access']
to FALSE
, the view displays no results.
The workaround is to instead set access on all child elements instead, and hide the form with CSS.
Proposed resolution
Remaining tasks
Determine if this is a bug, and fix.
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#2 | form-access-views-2446815-02.patch | 2.45 KB | jhedstrom |
Comments
Comment #1
jhedstromI'm going to write a test or two, and if I stumble upon a fix, I'll post that too :)
Comment #2
jhedstromHuh, well here's a test, but it's passing... After testbot runs, I'll postpone until I know more.
Comment #3
jhedstromComment #4
jhedstromComment #5
jhedstromComment #9
jhedstromComment #15
pameeela CreditAttribution: pameeela commented@jhedstrom this seems like it is safe to close - but figured I'd ask first!
Comment #16
pameeela CreditAttribution: pameeela commentedComment #17
pameeela CreditAttribution: pameeela commentedClosing since no update, feel free to set back to active if this is a mistake.