From 58e90c38bef330fe9094fffb636f976a428c7949 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 17 2019 12:17:28 +0000 Subject: Add a missing namespace in the link to edit inline comments in PR When making an inline comment in a PR the link generated to allow the user to edit their comment did not include the namespace. This meant, inline comments could not be edited at all... Fixes https://pagure.io/pagure/issue/4469 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/ui/filters.py b/pagure/ui/filters.py index 7c3cea7..448eb98 100644 --- a/pagure/ui/filters.py +++ b/pagure/ui/filters.py @@ -323,6 +323,7 @@ def format_loc( "edit_url": flask.url_for( "ui_ns.pull_request_edit_comment", repo=comment.parent.project.name, + namespace=comment.parent.project.namespace, requestid=comment.parent.id, commentid=comment.id, username=comment.parent.user.user