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
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

DaveNotik - August 15, 2006 - 00:44
Title:additional view filters?» Additional view filters: assigned to/opened by current user

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

Natalie@drupal.ru - August 16, 2006 - 01:08

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

DaveNotik - October 24, 2006 - 01:06

Bumping this up. I came across this need today when trying to create a custom "my cases" block via Views.

#4

Veggieryan - April 12, 2007 - 03:44

bump. please. this seems like basic functionality. very crucial.

#5

zero2one - October 25, 2007 - 08:13
Assigned to:Anonymous» zero2one
Status:active» fixed

Fixed see: http://drupal.org/cvs?commit=85845

#6

Anonymous - November 12, 2007 - 22:41
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.