Commit 5703c9fb authored by Mark Chao's avatar Mark Chao

Silently ignore case when date_sourcing_milestone is not setup

parent af65c04d
......@@ -154,11 +154,11 @@ module EE
end
def start_date_from_milestones
start_date_is_fixed? ? start_date_sourcing_milestone.start_date : start_date
start_date_is_fixed? ? start_date_sourcing_milestone&.start_date : start_date
end
def due_date_from_milestones
due_date_is_fixed? ? due_date_sourcing_milestone.due_date : due_date
due_date_is_fixed? ? due_date_sourcing_milestone&.due_date : due_date
end
def to_reference(from = nil, full: false)
......
Markdown is supported
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