diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-09-25 17:47:29 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-09-25 17:47:29 +0000 |
commit | 5e2eedf2c5fd6a4732fd9c6507145c4aa0761c67 (patch) | |
tree | 6c226891160803926158db653964ef43f903b67c /lib/tasks | |
parent | 62b66e9b38a8e6a1e60cb0aa8200145ce5f62666 (diff) | |
download | redmine-5e2eedf2c5fd6a4732fd9c6507145c4aa0761c67.tar.gz redmine-5e2eedf2c5fd6a4732fd9c6507145c4aa0761c67.zip |
Fixed that Mantis/Trac users are not imported because of password too short (#14590).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12163 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/migrate_from_mantis.rake | 5 | ||||
-rw-r--r-- | lib/tasks/migrate_from_trac.rake | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/tasks/migrate_from_mantis.rake b/lib/tasks/migrate_from_mantis.rake index ae8d3bb66..ffa84d4ea 100644 --- a/lib/tasks/migrate_from_mantis.rake +++ b/lib/tasks/migrate_from_mantis.rake @@ -504,15 +504,18 @@ task :migrate_from_mantis => :environment do Setting.cross_project_issue_relations = 1 if Setting.respond_to? 'cross_project_issue_relations' old_notified_events = Setting.notified_events + old_password_min_length = Setting.password_min_length begin # Turn off email notifications temporarily Setting.notified_events = [] + Setting.password_min_length = 4 # Run the migration MantisMigrate.establish_connection db_params MantisMigrate.migrate ensure - # Restore previous notification settings even if the migration fails + # Restore previous settings Setting.notified_events = old_notified_events + Setting.password_min_length = old_password_min_length end end diff --git a/lib/tasks/migrate_from_trac.rake b/lib/tasks/migrate_from_trac.rake index 605707182..ece967d65 100644 --- a/lib/tasks/migrate_from_trac.rake +++ b/lib/tasks/migrate_from_trac.rake @@ -767,14 +767,17 @@ namespace :redmine do puts old_notified_events = Setting.notified_events + old_password_min_length = Setting.password_min_length begin # Turn off email notifications temporarily Setting.notified_events = [] + Setting.password_min_length = 4 # Run the migration TracMigrate.migrate ensure - # Restore previous notification settings even if the migration fails + # Restore previous settings Setting.notified_events = old_notified_events + Setting.password_min_length = old_password_min_length end end end |