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

CommentFileSizeAuthor
#2 project_edit_dropdown.patch488 bytesjeffsheltren

Comments

bdragon’s picture

(this was my analysis in irc)

jeffsheltren’s picture

StatusFileSize
new488 bytes

Here's a patch against the 6.x-1.5 version which corrects the behavior in my testing.

jeremy’s picture

Status: Active » Fixed

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

Status: Fixed » Closed (fixed)

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