Skip to content
Snippets Groups Projects
Commit 251b1f75 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

Fixed: error on Trac import when :due attribute is nil (#1164).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1406 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent c65d696f
Branches
Tags
No related merge requests found
......@@ -92,7 +92,7 @@ namespace :redmine do
set_table_name :milestone
def due
if read_attribute(:due) > 0
if read_attribute(:due) && read_attribute(:due) > 0
Time.at(read_attribute(:due)).to_date
else
nil
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment