From 51c459489c92bb18353754d31c7ffb21d66e8a35 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 07 2016 21:21:14 +0000 Subject: Set the status in the form so that it validates --- diff --git a/pagure/api/issue.py b/pagure/api/issue.py index 157f9cc..4f0c64a 100644 --- a/pagure/api/issue.py +++ b/pagure/api/issue.py @@ -572,6 +572,7 @@ def api_change_status_issue(repo, issueid, username=None, namespace=None): if new_status in repo.close_status and not close_status: close_status = new_status new_status = 'Closed' + form.status.data = new_status if form.validate_on_submit(): try: