summaryrefslogtreecommitdiffstats
path: root/app/models/query.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-19 11:39:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-19 11:39:02 +0000
commitecd9d9ba2f43f2f5a88c1d34d34d07dae40dfe4e (patch)
tree4e49fd481f95e600f4eaac41f1e522bb18d0d719 /app/models/query.rb
parente7d52eb0afa9d878851dc993cb285a7688e99cd1 (diff)
downloadredmine-ecd9d9ba2f43f2f5a88c1d34d34d07dae40dfe4e.tar.gz
redmine-ecd9d9ba2f43f2f5a88c1d34d34d07dae40dfe4e.zip
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
Diffstat (limited to 'app/models/query.rb')
-rw-r--r--app/models/query.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/query.rb b/app/models/query.rb
index 3ad39365f..7372f712e 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -609,6 +609,11 @@ class Query < ActiveRecord::Base
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
def project_statuses_values
[