[#5482] Fix counts when grouping by contracts in the issues list

This commit is contained in:
Eric Davis committed 2011-02-22 10:58:19 -08:00
1 parent 3384dd3dbd
commit 496c6bada7
3 files changed
+11 -3

No files matched your search

+5 -1
View File
@@ -10,7 +10,11 @@ module RedmineContracts
belongs_to :deliverable
delegate :title, :to => :deliverable, :prefix => true, :allow_nil => true
delegate :contract_name, :to => :deliverable, :allow_nil => true
delegate :contract, :to => :deliverable, :allow_nil => true
def contract_name
contract.try(:name)
end
end
end