Change status on assignment of open bugs.
authorRobert Lehmann <mail@robertlehmann.de>
Fri, 26 Nov 2010 08:49:46 +0000 (09:49 +0100)
committerRobert Lehmann <mail@robertlehmann.de>
Fri, 26 Nov 2010 08:49:46 +0000 (09:49 +0100)
After a bug has been assigned from status `open' it is no longer
eligible for that status as described:

    A working bug that has not been assigned to a developer.

libbe/command/assign.py

index 7632abfd8d9b77ad1134ee97de0a28b5925ed798..d6b3e904b3735f39288832af8e128e746ddefada 100644 (file)
@@ -84,6 +84,8 @@ class Assign (libbe.command.Command):
                 libbe.command.util.bug_comment_from_user_id(bugdir, bug_id)
             if bug.assigned != assigned:
                 bug.assigned = assigned
+                if bug.status == 'open':
+                    bug.status = 'assigned'
         return 0
 
     def _long_help(self):