diff options
author | Florian Zschocke <f.zschocke+git@gmail.com> | 2022-12-06 21:51:54 +0100 |
---|---|---|
committer | Florian Zschocke <f.zschocke+git@gmail.com> | 2022-12-06 21:51:54 +0100 |
commit | 60a0434ac329af040ba11ec7dedafe581a9b588e (patch) | |
tree | 32453056f48ae52d167af8be15ab30edda6f6513 | |
parent | 71697e5fc0f5908d8bf6bb0ae9a63499ee737649 (diff) | |
download | gitblit-60a0434ac329af040ba11ec7dedafe581a9b588e.tar.gz gitblit-60a0434ac329af040ba11ec7dedafe581a9b588e.zip |
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.
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/TicketPage.java | 2 |
1 files changed, 1 insertions, 1 deletions
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;
}
|