[#4389] Add the Deliverable filter to the Time Entry report.

This commit is contained in:
Eric Davis committed 2010-08-16 09:39:27 -07:00
1 parent a3e1aa277f
commit 620eaa262f
4 files changed
+74

No files matched your search

@@ -0,0 +1,14 @@
module RedmineContracts
module Hooks
class ControllerTimelogAvailableCriteriasHook < Redmine::Hook::ViewListener
def controller_timelog_available_criterias(context={})
context[:available_criterias]["deliverable_id"] = {
:sql => "#{Issue.table_name}.deliverable_id",
:klass => Deliverable,
:label => :field_deliverable
}
return ''
end
end
end
end