summaryrefslogtreecommitdiffstats
path: root/lib/tasks/migrate_from_trac.rake
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-11-11 13:28:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-11-11 13:28:48 +0000
commitd545ca736070e3117637e9ea1b065df07ab705d2 (patch)
tree3a61451d3b7c69cf7e4741e7b7387147e7c5add0 /lib/tasks/migrate_from_trac.rake
parent1802fa9348eadf0c890996fbac6e8c6011c7d8e0 (diff)
downloadredmine-d545ca736070e3117637e9ea1b065df07ab705d2.tar.gz
redmine-d545ca736070e3117637e9ea1b065df07ab705d2.zip
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
Diffstat (limited to 'lib/tasks/migrate_from_trac.rake')
-rw-r--r--lib/tasks/migrate_from_trac.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/migrate_from_trac.rake b/lib/tasks/migrate_from_trac.rake
index fd53250b8..88f9fbc39 100644
--- a/lib/tasks/migrate_from_trac.rake
+++ b/lib/tasks/migrate_from_trac.rake
@@ -270,7 +270,7 @@ namespace :redmine do
text = text.gsub(/\[(http[^\s]+)\s+([^\]]+)\]/) {|s| "\"#{$2}\":#{$1}"}
# Situations like the following:
# [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:
# ticket:1234
# #1 is working cause Redmine uses the same syntax.