[#4517] Default the details row to All periods when it's out of the date range

This commit is contained in:
Eric Davis committed 2010-09-17 10:44:18 -07:00
1 parent 74d707a1a4
commit 19ed07b617
4 files changed
+60 -10

No files matched your search

+8
View File
@@ -111,4 +111,12 @@ module ContractsHelper
options
end
# Given a deliverable and period, validate the period
# TODO: could use a better name
def validate_period(deliverable, period)
if deliverable.current_date && deliverable.within_period_range?(period)
return period
end
end
end