diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-01-28 19:45:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-01-28 19:45:09 +0000 |
commit | d39e12c202fcee615f217e50f92f28ebeb6527ce (patch) | |
tree | c7a5a48170e1c6cfd1a055f676d4ee59db4ebcdc /lib/tasks | |
parent | 898a8c885b78af75e0ca14f6cd53c5357d039744 (diff) | |
download | redmine-d39e12c202fcee615f217e50f92f28ebeb6527ce.tar.gz redmine-d39e12c202fcee615f217e50f92f28ebeb6527ce.zip |
Prevent error when Mantis version.date_order is nil (#7476).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4765 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/migrate_from_mantis.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/migrate_from_mantis.rake b/lib/tasks/migrate_from_mantis.rake index cd82872c1..c45ce68e3 100644 --- a/lib/tasks/migrate_from_mantis.rake +++ b/lib/tasks/migrate_from_mantis.rake @@ -287,7 +287,7 @@ task :migrate_from_mantis => :environment do project.versions.each do |version|
v = Version.new :name => encode(version.version),
:description => encode(version.description),
- :effective_date => version.date_order.to_date
+ :effective_date => (version.date_order ? version.date_order.to_date : nil)
v.project = p
v.save
versions_map[version.id] = v.id
|