[#4389] Added the Contract filter to the Time Entry report.

This commit is contained in:
Eric Davis
2010-08-16 09:54:09 -07:00
parent 620eaa262f
commit 720da2c554
3 changed files with 32 additions and 1 deletions

View File

@@ -7,6 +7,11 @@ module RedmineContracts
:klass => Deliverable,
:label => :field_deliverable
}
context[:available_criterias]["contract_id"] = {
:sql => "(SELECT deliverable.contract_id FROM #{Deliverable.table_name} deliverable WHERE deliverable.id = issues.deliverable_id)",
:klass => Contract,
:label => :field_contract
}
return ''
end
end