fixed available values of issues

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

@ -2,7 +2,7 @@ class CostQuery::Filter::IssueId < CostQuery::Filter::Base
label :field_issue
def self.available_values(user)
issues = user.projects.collect { |p| p.issues }.flatten.uniq.sort_by { |i| i.id }
issues = Project.visible.collect { |p| p.issues }.flatten.uniq.sort_by { |i| i.id }
issues.map { |i| ["##{i.id} #{i.subject.length>30 ? i.subject.first(26)+'...': i.subject}", i.id] }
end
end

Loading…
Cancel
Save