mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-19 10:02:04 +00:00
remove spaces inside {} of app/models/project_query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20408 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7e3a61ef52
commit
56dfe3c070
@ -39,23 +39,23 @@ class ProjectQuery < Query
|
||||
|
||||
def initialize(attributes=nil, *args)
|
||||
super attributes
|
||||
self.filters ||= { 'status' => {:operator => "=", :values => ['1']} }
|
||||
self.filters ||= {'status' => {:operator => "=", :values => ['1']}}
|
||||
end
|
||||
|
||||
def initialize_available_filters
|
||||
add_available_filter(
|
||||
"status",
|
||||
:type => :list, :values => lambda { project_statuses_values }
|
||||
:type => :list, :values => lambda {project_statuses_values}
|
||||
)
|
||||
add_available_filter(
|
||||
"id",
|
||||
:type => :list, :values => lambda { project_values }, :label => :field_project
|
||||
:type => :list, :values => lambda {project_values}, :label => :field_project
|
||||
)
|
||||
add_available_filter "name", :type => :text
|
||||
add_available_filter "description", :type => :text
|
||||
add_available_filter(
|
||||
"parent_id",
|
||||
:type => :list_subprojects, :values => lambda { project_values }, :label => :field_parent
|
||||
:type => :list_subprojects, :values => lambda {project_values}, :label => :field_parent
|
||||
)
|
||||
add_available_filter(
|
||||
"is_public",
|
||||
@ -70,7 +70,7 @@ class ProjectQuery < Query
|
||||
return @available_columns if @available_columns
|
||||
@available_columns = self.class.available_columns.dup
|
||||
@available_columns += project_custom_fields.visible.
|
||||
map {|cf| QueryCustomFieldColumn.new(cf) }
|
||||
map {|cf| QueryCustomFieldColumn.new(cf)}
|
||||
@available_columns
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user