Fixed: Trac migration of ticket:123 or [ticket:34] do not work (#2053).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2013 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1802fa9348
commit
d545ca7360
|
@ -270,7 +270,7 @@ namespace :redmine do
|
||||||
text = text.gsub(/\[(http[^\s]+)\s+([^\]]+)\]/) {|s| "\"#{$2}\":#{$1}"}
|
text = text.gsub(/\[(http[^\s]+)\s+([^\]]+)\]/) {|s| "\"#{$2}\":#{$1}"}
|
||||||
# Situations like the following:
|
# Situations like the following:
|
||||||
# [ticket:234 Text],[ticket:234 This is a test]
|
# [ticket:234 Text],[ticket:234 This is a test]
|
||||||
text = text.gsub(/\[ticket\:([^\ ]+)\ (.+?)\]/, '[[#\1|\2]]')
|
text = text.gsub(/\[ticket\:([^\ ]+)\ (.+?)\]/, '"\2":/issues/show/\1')
|
||||||
# Situations like:
|
# Situations like:
|
||||||
# ticket:1234
|
# ticket:1234
|
||||||
# #1 is working cause Redmine uses the same syntax.
|
# #1 is working cause Redmine uses the same syntax.
|
||||||
|
|
Loading…
Reference in New Issue