Project

General

Profile

Feature #29482 » 0004-Filter-after-project-custom-fields.patch

Marius BĂLTEANU, 2019-09-28 18:45

View differences:

app/models/project_query.rb
44 44
      :type => :list,
45 45
      :values => [[l(:general_text_yes), "1"], [l(:general_text_no), "0"]]
46 46
    add_available_filter "created_on", :type => :date_past
47
    add_custom_fields_filters(project_custom_fields)
47 48
  end
48 49

  
49 50
  def available_columns
app/models/query.rb
608 608
    end
609 609
  end
610 610

  
611
  # Returns a scope of project custom fields that are available as columns or filters
612
  def project_custom_fields
613
    ProjectCustomField.all
614
  end
615

  
611 616
  # Returns a scope of project statuses that are available as columns or filters
612 617
  def project_statuses_values
613 618
    [
(9-9/16)