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.

CommentFileSizeAuthor
#1 views-cache-issue.patch412 bytesalfaguru
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alfaguru’s picture

Status: Active » Needs review
FileSize
412 bytes

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.

kbahey’s picture

Version: 5.x-1.2 » 5.x-1.x-dev
Status: Needs review » Fixed

Fixed in -dev.

Thank you.

Status: Fixed » Closed (fixed)

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