From 1e10d6f5634d14d3d9a98affacf163456196cc09 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 07 2016 21:21:13 +0000 Subject: Fix bug when changing the status of a ticket via the API --- diff --git a/pagure/api/issue.py b/pagure/api/issue.py index bdf6295..157f9cc 100644 --- a/pagure/api/issue.py +++ b/pagure/api/issue.py @@ -571,7 +571,7 @@ def api_change_status_issue(repo, issueid, username=None, namespace=None): new_status = form.status.data.strip() if new_status in repo.close_status and not close_status: close_status = new_status - form.status.data = 'Closed' + new_status = 'Closed' if form.validate_on_submit(): try: