Posted by dmbch on August 4, 2008 at 3:26pm
| Project: | Favorite Nodes |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Using Drupal 5.9 and Views 5.x-1.6, the UID-filter does not work as expected: Set to "is equal to" "Currently Logged In User", I would expect the resulting view to only show the current user's favorites. It does however show everybody's favs. We accidentally found that exposing the filter makes it work as anticipated.
Comments
#1
I'm not sure why it should show everybody's favourites but I can see why it may always show those for a particular user. The view gets cached with an actual user ID rather than the magic string ***CURRENT_USER***, which needs to be used in any situation where the current user ID is required, to ensure the view can be cached.
Here's a patch that fixes it.
#2
Fixed in -dev.
Thank you.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.