give issue filters a longer description in the view

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1275 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
p.tessenow 15 years ago
parent d8bd7ee4f2
commit d4303ae264
  1. 2
      app/models/cost_query/filter/issue_id.rb

@ -2,6 +2,6 @@ class CostQuery::Filter::IssueId < CostQuery::Filter::Base
label :field_issue label :field_issue
def self.available_values def self.available_values
Issue.all.map { |i| ["##{i.id} #{i.subject.length>24 ? i.subject.first(20)+'...': i.subject}", i.id] } Issue.all.map { |i| ["##{i.id} #{i.subject.length>30 ? i.subject.first(26)+'...': i.subject}", i.id] }
end end
end end

Loading…
Cancel
Save