fix user_fullname

This commit is contained in:
Benjamin Dauvergne 2018-10-18 18:03:05 +02:00
parent 1c9a3ed29f
commit fd3c86a040
1 changed files with 1 additions and 5 deletions

View File

@ -26,10 +26,6 @@ def slugify(title):
return title
def user_fullname(user):
return (user.firstname + u' ' + user.lastname).strip()
def get_config(name, default=Ellipsis):
repo = git.Repo()
reader = repo.config_reader()
@ -265,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 ?' % user_fullname(issue.assigned_to), abort=True):
'to assign the issue to yourself ?' % issue.assigned_to.name, abort=True):
issue.assigned_to_id = current_user.id
issue.save()
kwargs['status_id'] = api.solution.id