mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Filter after project custom fields (#29482).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18764 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e7d52eb0af
commit
ecd9d9ba2f
@ -44,6 +44,7 @@ class ProjectQuery < Query
|
|||||||
:type => :list,
|
:type => :list,
|
||||||
:values => [[l(:general_text_yes), "1"], [l(:general_text_no), "0"]]
|
:values => [[l(:general_text_yes), "1"], [l(:general_text_no), "0"]]
|
||||||
add_available_filter "created_on", :type => :date_past
|
add_available_filter "created_on", :type => :date_past
|
||||||
|
add_custom_fields_filters(project_custom_fields)
|
||||||
end
|
end
|
||||||
|
|
||||||
def available_columns
|
def available_columns
|
||||||
|
|||||||
@ -609,6 +609,11 @@ class Query < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Returns a scope of project custom fields that are available as columns or filters
|
||||||
|
def project_custom_fields
|
||||||
|
ProjectCustomField.all
|
||||||
|
end
|
||||||
|
|
||||||
# Returns a scope of project statuses that are available as columns or filters
|
# Returns a scope of project statuses that are available as columns or filters
|
||||||
def project_statuses_values
|
def project_statuses_values
|
||||||
[
|
[
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user