Closed (fixed)
Project:
Case Tracker
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2009 at 07:36 UTC
Updated:
14 Jan 2010 at 03:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
jmiccolis commentedAre you using the default views provided by casetracker, or have you build your own?
If you are using your own can you attach the exported definition of one?
Comment #2
hgrindba commentedHi! Thx for answering. I'm using the casetracker_project_cases view as template, which I've attached som modified views. Look at the view named raditoppgaveliste. When choosing the name of the assigned user i get another users cases. The only choices that work correctly is 'any user' and 'current user'.
Comment #3
Azol commentedI have similar issue, but that's what I have done:
I added a custom CCK data field "Due date" to case node then I made a new view "Outdated cases" with corresponding filters. The fun thing is ALL the cases display "Guest" as assigned user. I think these problems may be related to each other - wrong assigned user display in views with custom filters.
Comment #4
scottrigbyThe same issue happens with Open Atrium installation of Casetraker (6.x-1.0-beta4) - on OA's site as well.
Here's the issue, which provides more specific information -- and to cross-reference:
https://community.openatrium.com/issues/node/833#comment-2033
Comment #5
msonnabaum commentedLooks like this is happening in casetracker_user_options().
The first bit that gets the list of users from the view returns an array of users keyed by their UID. Those keys don't get preserved however in the array_slice() that's used to add the anonymous user to the array.
Changing it from:
array_splice($options, 0, 0, array($anon_user));to:
$options = array($anon_user) + $options;seems to accomplish the same goal while preserving keys.
Making that change fixes the views filter for me.
Patch attached.
Comment #6
scottrigbyworks here too -- this would be great to commit for the next release of OA as well
Comment #7
sanduhrsCan confirm the patch in #5 is working as advertised && RTBC!
Comment #8
jmiccolis commentedThanks for the patch and reviews. Committed!