The drop-down to display the project is not being set with the correct default when editing a ticket. It should default to whichever project the ticket has been assigned to, but it always selects the 'default' project. This means, you can set a project correctly, but then when you go back to a ticket the drop-down will display the default project rather than whichever is assigned to the ticket. This could cause things to get re-assigned to the default project by mistake. Chatting with Bdragon, it seems that this code may be to blame:
http://drupalcode.org/project/support.git/blobdiff/8b2c93515f7a1f26c3dbc...
$node->project->project in that last line likely needs to be $node->project->projid (or whatever the appropriate variable is for the project id which is the 'value' for the drop-down entry).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | project_edit_dropdown.patch | 488 bytes | jeffsheltren |
Comments
Comment #1
bdragon commented(this was my analysis in irc)
Comment #2
jeffsheltren commentedHere's a patch against the 6.x-1.5 version which corrects the behavior in my testing.
Comment #3
jeremy commentedThanks. However, patches should be against the HEAD of a branch, not against an older release. Your patch doesn't apply to the development version where it needs to.
Fixed, and committed in 6.x-1.x:
http://drupalcode.org/project/support.git/commit/4201d98
Ported and committed to 7.x-1.x too:
http://drupalcode.org/project/support.git/commit/509a435