From db14b4512580f4067e878f05e789e6f18899a04d Mon Sep 17 00:00:00 2001 From: Jelle Hulter Date: Fri, 17 Sep 2021 14:13:09 +0200 Subject: [PATCH] Fixed issue where creating a reference of an issue would create a tag with the full name instead of the username if this is the default in the .ini file --- templates/repo/issue/view_content/context_menu.tmpl | 2 +- web_src/js/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/issue/view_content/context_menu.tmpl b/templates/repo/issue/view_content/context_menu.tmpl index fdefde979dc5a..71ce03a4cab05 100644 --- a/templates/repo/issue/view_content/context_menu.tmpl +++ b/templates/repo/issue/view_content/context_menu.tmpl @@ -17,7 +17,7 @@
{{.ctx.i18n.Tr "repo.issues.context.copy_link"}}
{{.ctx.i18n.Tr "repo.issues.context.quote_reply"}}
{{if not .ctx.UnitIssuesGlobalDisabled}} -
{{.ctx.i18n.Tr "repo.issues.context.reference_issue"}}
+
{{.ctx.i18n.Tr "repo.issues.context.reference_issue"}}
{{end}} {{if or .ctx.Permission.IsAdmin .IsCommentPoster .ctx.HasIssuesOrPullsWritePermission}}
diff --git a/web_src/js/index.js b/web_src/js/index.js index 78caa51fd6523..a092452e6b2b4 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -997,7 +997,7 @@ async function initRepository() { const content = $(`#comment-${$this.data('target')}`).text(); const subject = content.split('\n', 1)[0].slice(0, 255); - const poster = $this.data('poster'); + const poster = $this.data('poster-username'); const reference = $this.data('reference'); const $modal = $($this.data('modal'));