[#4225] Add the Deliverable as a criteria in the Time Entries Report.

This commit is contained in:
Eric Davis committed 2010-07-01 13:34:24 -07:00
1 parent e25f841fe2
commit aa9649fde3
2 files changed
+46 -4

No files matched your search

@@ -1,7 +1,13 @@
module RedmineBudget
module Hooks
class ControllerTimelogAvailableCriteriasHook < Redmine::Hook::ViewListener
# Adds the Deliverable as a filter to the Timelog Report
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