Download & Extend

Incorrectly caching uid for applicant filter

Project:Job Search
Version:5.x-2.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I'm trying to get the view working correctly for listing the jobs the current logged in user has applied for.

After importing the view as described in http://drupal.org/node/207625 ("my_applications"), switching between users results in the initial user's applications being displayed. The second user incorrectly showed the first user's list of job applications for the my_applications view.

After some investigation, it appears the query is being cached (job_views_handler_filter_applicant) and the previous uid is used in the query. Clearing the cache does the trick.

Tested using fresh Drupal 5.7 with Job Search (5.x-2.0 no patches), Views and Devel installed. Just started using Job Search, and relatively new to Drupal too, so not sure if I'm missing something here?