diff options
-rw-r--r-- | libbe/command/new.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libbe/command/new.py b/libbe/command/new.py index 7a5c51d..849eafb 100644 --- a/libbe/command/new.py +++ b/libbe/command/new.py @@ -109,7 +109,12 @@ class New (libbe.command.Command): else: bug.reporter = bug.creator if params['assigned'] != None: - bug.assigned = params['assigned'] + assigned = params['assigned'] + if assigned == 'none': + assigned = None + elif assigned == '-': + assigned = self._get_user_id() + bug.assigned = assigned if params['status'] != None: bug.status = params['status'] if params['severity'] != None: |