In a comment of a revision: No link to issue
We mark that a revision belongs to an issue using this syntax in the comment of our commits: "CR#<id>:" (much like with "refs #<id>")
Redmine doesn't recognize this by default (the space between <keywords> and #<id> is mandatory), so I modified app/models/changeset.rb so it recognizes this.
Indeed, under an Issue, I can see all the revisions that reference the Issue with CR#<id>. However, in the comment of the revision, the text CR#<id> is not a link, whereas refs #<id> is.
Attached is a screenshot so you can see what I mean (it's pretty simple).
So, I am looking for the code which inserts the link to the issue in the comment.
Thanks a lot!
redmine_question.png (42.9 KB)
I'm 99% sure that using the standard "#(number)" it's triggered by the "textilizable" method called on pages.
Which calls "parse_redmine_links"
You'll have to add the "CR#" to the regex and the separator below.
William, thanks a lot!
Thanks to your help, I was able to make the changes in less than half an hour. Do you think there is any sense in providing a (slightly more abstract) patch so that people who are using similar syntax than us can benefit from it, too? (like Issue#4 or so ...)