do not abort when refusing to assign issue to self

This commit is contained in:
Benjamin Dauvergne 2018-10-18 18:04:47 +02:00
parent fd3c86a040
commit c546fb0093
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ def submit(issue, number_of_commits):
issue.save()
elif issue.assigned_to.id != current_user.id:
if click.confirm('Issue is currently assigned to %s, do you want '
'to assign the issue to yourself ?' % issue.assigned_to.name, abort=True):
'to assign the issue to yourself ?' % issue.assigned_to.name):
issue.assigned_to_id = current_user.id
issue.save()
kwargs['status_id'] = api.solution.id