From 3c513da4f68806bb625747e98dfb74d0d7682811 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 28 2015 09:56:16 +0000 Subject: Do not override the existing repo variable project_from is a null for remote PRs and is then causing issues. Actually, we do not need to override this variable, it works fine w/o it. --- diff --git a/pagure/ui/fork.py b/pagure/ui/fork.py index bbaed0c..d3f69f8 100644 --- a/pagure/ui/fork.py +++ b/pagure/ui/fork.py @@ -354,8 +354,6 @@ def pull_request_add_comment( is_js = flask.request.args.get('js', False) - repo = request.project_from - form = pagure.forms.AddPullRequestCommentForm() form.commit.data = commit form.filename.data = filename @@ -395,6 +393,7 @@ def pull_request_add_comment( if is_js: return 'failed' + return flask.render_template( 'pull_request_comment.html', select='requests',