]> source.dussan.org Git - gitblit.git/commitdiff
fix: Fix incorrect text being copied by copy button on tickets page
authorFlorian Zschocke <f.zschocke+git@gmail.com>
Tue, 6 Dec 2022 20:51:54 +0000 (21:51 +0100)
committerFlorian Zschocke <f.zschocke+git@gmail.com>
Tue, 6 Dec 2022 20:51:54 +0000 (21:51 +0100)
The merge step for using `pt` added the wrong text to the copy button.

src/main/java/com/gitblit/wicket/pages/TicketPage.java

index d6d188dfdf7f6664cb39806de51ba78cfec356f4..54fdf3a3842a20ffe88527d9f30045fbbd77b083 100644 (file)
@@ -1561,7 +1561,7 @@ public class TicketPage extends RepositoryPage {
                // pt instructions\r
                String ptStep = MessageFormat.format("pt pull {0,number,0}", ticket.number);\r
                cmd.add(new Label("ptMergeStep", ptStep));\r
-               cmd.add(createCopyFragment("ptMergeCopyStep", step1.replace("\n", " && ")));\r
+               cmd.add(createCopyFragment("ptMergeCopyStep", ptStep.replace("\n", " && ")));\r
                return cmd;\r
        }\r
 \r