Closed (fixed)
Project:
Storm
Version:
6.x-2.x-dev
Component:
Storm Team
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2011 at 11:21 UTC
Updated:
2 Dec 2011 at 23:00 UTC
Jump to comment: Most recent file
In the teams there are person, which are disabled.
I think there should only persons added, which are active (node status of person != 0) in the team array.
Patch follows.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | only_active_person-1318432-5.patch | 2.82 KB | kfritsche |
| #3 | only_active_person-1318432-3.patch | 2.81 KB | kfritsche |
| #1 | only_active_person-1318432-1.patch | 577 bytes | kfritsche |
Comments
Comment #1
kfritscheHere the patch.
Comment #2
juliangb commented(I think this is a change rather than a bug.)
I'm not sure about this filtering on the node_load. We can then get to a situation where there is "garbage" (old persons) in teams that are just hidden and not properly removed.
Do we currently allow adding disabled persons to teams?
I think perhaps we should not allow adding disabled persons to teams, but then if the person is in the team, leave them in until removed.
Comment #3
kfritscheYou are right.
Here another patch. It disables that you can add disabled person to teams. Also it adds a 2nd member array for deactivated people, but they are still in the normal member array to.
This is used for the assigned Select Box, to easily remove deactivated Persons. Because it shouldn't be able to assign a node to a no longer existing person.
In the view of the team node, to all deactivated people names, there will be added an notice that this people are no longer available.
What do you think of this approach?
This doesn't change the member_array, so we do not get problems anywhere, because of missing persons.
But you can't add these people to teams and more important, can't assign tickets to this persons.
Comment #4
juliangb commentedHave spent a while reading through the changes - and am broadly in line with them.
One minor point....
I think deactived would read better as deactivated?
Comment #5
kfritscheI should add a spell checker :)
New Patch.
Fixed spelling error (deactived to deactivated)
Comment #6
juliangb commented#5: only_active_person-1318432-5.patch queued for re-testing.
Comment #7
juliangb commentedCommitted to 2.x. Thanks!