Project

General

Profile

Defect #15789 » 0001-redmine-issue-15789.patch

disable issues filter by group - Rafał Lisowski, 2014-05-19 11:09

View differences:

app/models/issue_query.rb
183 183
      :type => :list_optional, :values => assigned_to_values
184 184
    ) unless assigned_to_values.empty?
185 185

  
186
    group_values = Group.all.collect {|g| [g.name, g.id.to_s] }
187
    add_available_filter("member_of_group",
188
      :type => :list_optional, :values => group_values
189
    ) unless group_values.empty?
186
    # group_values = Group.all.collect {|g| [g.name, g.id.to_s] }
187
    # add_available_filter("member_of_group",
188
    #   :type => :list_optional, :values => group_values
189
    # ) unless group_values.empty?
190 190

  
191 191
    role_values = Role.givable.collect {|r| [r.name, r.id.to_s] }
192 192
    add_available_filter("assigned_to_role",
    (1-1/1)