use radio for checking approval/denial

This commit is contained in:
Andrew Croce 2018-09-13 14:21:51 -04:00 committed by dandds
parent 738cbb1c65
commit fbe701bba1

View File

@ -58,7 +58,7 @@ def submit_approval(request_id):
form = CCPOReviewForm(http_request.form)
if form.validate():
if http_request.form.get("approved"):
if http_request.form.get("review") == "approving":
Requests.advance(g.current_user, request, form.data)
else:
Requests.request_changes(g.current_user, request, form.data)