mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user