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.
When a view is showing files and has a relationship with the fid of that field, the result of that view will be empty.
I've tracked it down to the access check, that does a module_invoke('stream_wrappers') (file.inc line 127).
storage_core_bridge_stream_wrappers() returns STREAM_WRAPPERS_HIDDEN for all its' fields.
Comment | File | Size | Author |
---|---|---|---|
#1 | storage_api-wrapper-access.2128995.1.patch | 1.28 KB | thijsvdanker |
Comments
Comment #1
thijsvdanker CreditAttribution: thijsvdanker commentedWhen a view is showing files and has a relationship with the fid of that field, the result of that view will be empty.
I've tracked it down to the access check, that does a module_invoke('stream_wrappers') (file.inc line 127).
storage_core_bridge_stream_wrappers() returns STREAM_WRAPPERS_HIDDEN for all its' fields.
The patch checks for admin path to choose between hidden and visible.
Not sure if it's the cleanest way to go, but based on #1465760 it was once an option :)
Please review!
Comment #2
Andre-Bdo you have another solution rather than relying on admin path? I guess this wont fix the issue if a similar view outside of the admin section is shown.
Comment #3
Perignon CreditAttribution: Perignon commentedMarking closed due to no response.