]> source.dussan.org Git - redmine.git/commitdiff
Disable email notifications before importing data.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 4 May 2009 17:41:52 +0000 (17:41 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 4 May 2009 17:41:52 +0000 (17:41 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2710 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/migrate_from_mantis.rake
lib/tasks/migrate_from_trac.rake

index aec8010048715084464c211ad4ca6a9e4ce61a87..499dc7b93a6e7596240a8b22b5ca3a91d59c174e 100644 (file)
@@ -504,6 +504,9 @@ task :migrate_from_mantis => :environment do
   # Make sure bugs can refer bugs in other projects\r
   Setting.cross_project_issue_relations = 1 if Setting.respond_to? 'cross_project_issue_relations'\r
   \r
+  # Turn off email notifications\r
+  Setting.notified_events = []\r
+  \r
   MantisMigrate.establish_connection db_params\r
   MantisMigrate.migrate\r
 end\r
index a63daae1a9f38b9c44ba1b8d882c6066fef27be7..7ee5c4ece8ca4e68ddfc9025f5a6dda7a333a95d 100644 (file)
@@ -752,7 +752,10 @@ namespace :redmine do
     prompt('Trac database encoding', :default => 'UTF-8') {|encoding| TracMigrate.encoding encoding}
     prompt('Target project identifier') {|identifier| TracMigrate.target_project_identifier identifier}
     puts
-
+    
+    # Turn off email notifications
+    Setting.notified_events = []
+    
     TracMigrate.migrate
   end
 end