if (StringUtils.isEmpty(ticket.body)) {\r
desc = getString("gb.noDescriptionGiven");\r
} else {\r
- String bugtraq = bugtraqProcessor().processPlainCommitMessage(getRepository(), repositoryName, ticket.body);\r
+ String bugtraq = bugtraqProcessor().processText(getRepository(), repositoryName, ticket.body);\r
desc = MarkdownUtils.transformGFM(app().settings(), bugtraq, ticket.repository);\r
}\r
add(new Label("ticketDescription", desc).setEscapeModelStrings(false));\r
add(new Label("ticketTopic").setVisible(false));\r
} else {\r
// process the topic using the bugtraq config to link things\r
- String topic = bugtraqProcessor().processPlainCommitMessage(getRepository(), repositoryName, ticket.topic);\r
+ String topic = bugtraqProcessor().processText(getRepository(), repositoryName, ticket.topic);\r
add(new Label("ticketTopic", topic).setEscapeModelStrings(false));\r
}\r
\r
/*\r
* COMMENT\r
*/\r
- String bugtraq = bugtraqProcessor().processPlainCommitMessage(getRepository(), repositoryName, entry.comment.text);\r
+ String bugtraq = bugtraqProcessor().processText(getRepository(), repositoryName, entry.comment.text);\r
String comment = MarkdownUtils.transformGFM(app().settings(), bugtraq, repositoryName);\r
Fragment frag = new Fragment("entry", "commentFragment", this);\r
Label commentIcon = new Label("commentIcon");\r
public void populateItem(final Item<String> labelItem) {
BugtraqProcessor btp = new BugtraqProcessor(app().settings());
Repository db = app().repositories().getRepository(repository.name);
- String content = btp.processPlainCommitMessage(db, repository.name, labelItem.getModelObject());
+ String content = btp.processText(db, repository.name, labelItem.getModelObject());
db.close();
Label label = new Label("label", content);
label.setEscapeModelStrings(false);