OSDN Git Service

Small change to mantis importer to be 0.5.1 compatible.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 14 Aug 2007 13:58:39 +0000 (13:58 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 14 Aug 2007 13:58:39 +0000 (13:58 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@635 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/migrate_from_mantis.rake

index 5eb1160..4f6f185 100644 (file)
@@ -471,7 +471,7 @@ task :migrate_from_mantis => :environment do
   puts\r
   \r
   # Make sure bugs can refer bugs in other projects\r
-  Setting.cross_project_issue_relations = 1\r
+  Setting.cross_project_issue_relations = 1 if Setting.respond_to? 'cross_project_issue_relations'\r
   \r
   MantisMigrate.establish_connection db_params\r
   MantisMigrate.migrate\r