Improve filter
Added by Luis Serrano Aranda almost 13 years ago
Godd morning team, I want to improve the filter to look only the allowed status and I think it's possible modifying the @available_filters inside the file /app/models/query.rb from
@available_filters = { "status_id" => { :type => :list_status, :order => 1, :values => IssueStatus.find(:all, :order => 'position').collect{|s| [s.name, s.id.to_s] } },
to
@available_filters = { "status_id" => { :type => :list_status, :order => 1, :values => (@allowed_statuses.collect{|s| [s.name, s.id.to_s]}) },
But this solution don't work... Please, could you helpme ?