From 60a0434ac329af040ba11ec7dedafe581a9b588e Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Tue, 6 Dec 2022 21:51:54 +0100 Subject: [PATCH] fix: Fix incorrect text being copied by copy button on tickets page The merge step for using `pt` added the wrong text to the copy button. --- src/main/java/com/gitblit/wicket/pages/TicketPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gitblit/wicket/pages/TicketPage.java b/src/main/java/com/gitblit/wicket/pages/TicketPage.java index d6d188df..54fdf3a3 100644 --- a/src/main/java/com/gitblit/wicket/pages/TicketPage.java +++ b/src/main/java/com/gitblit/wicket/pages/TicketPage.java @@ -1561,7 +1561,7 @@ public class TicketPage extends RepositoryPage { // pt instructions String ptStep = MessageFormat.format("pt pull {0,number,0}", ticket.number); cmd.add(new Label("ptMergeStep", ptStep)); - cmd.add(createCopyFragment("ptMergeCopyStep", step1.replace("\n", " && "))); + cmd.add(createCopyFragment("ptMergeCopyStep", ptStep.replace("\n", " && "))); return cmd; } -- 2.39.5