Additional view filters: assigned to/opened by current user
Natalie@drupal.ru - August 15, 2006 - 00:36
| Project: | Case Tracker |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | zero2one |
| Status: | closed |
Jump to:
Description
I think it would be useful for anyone who's making a custom view of projects and cases to have these filters added: Casetracker: Assigned to Current User and Casetracker: Opened by Current User (and the one that combines both I guess). I tried to do it but with my almost nonexistent knowledge of PHP only managed to produce errors.

#1
Good suggestion Natalie.
OG (og.module), in the "Og: Post in User Subbed Groups" filter, has an "Is Currently Logged in User" value, so that's probably a good place to look. If you can't whip up a patch, maybe someone else who's following can help.
#2
Indeed, I've looked at OG and tried to add the following code to casetracker_views_tables(), in filters:
'currentuid' => array('field' => 'uid',
'name' => t('Case Tracker: Assigned to Current User'),
'list' => 'views_handler_filter_usercurrent',
'list-type' => 'select',
'operator' => 'views_handler_operator_eqneq',
'help' => t('This allows you to filter cases based on the current user.')
),
#3
Bumping this up. I came across this need today when trying to create a custom "my cases" block via Views.
#4
bump. please. this seems like basic functionality. very crucial.
#5
Fixed see: http://drupal.org/cvs?commit=85845
#6
Automatically closed -- issue fixed for two weeks with no activity.