Sfoglia il codice sorgente

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.
pull/1442/head
Florian Zschocke 1 anno fa
parent
commit
60a0434ac3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/main/java/com/gitblit/wicket/pages/TicketPage.java

+ 1
- 1
src/main/java/com/gitblit/wicket/pages/TicketPage.java Vedi File

@@ -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;
}

Loading…
Annulla
Salva