#4472 Add a missing namespace in the link to edit inline comments in PR
Merged 2 years ago by pingou. Opened 2 years ago by pingou.

file modified
+1
@@ -323,6 +323,7 @@ 

                              "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

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 pingou@pingoured.fr

Pull-Request has been merged by pingou

2 years ago