Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11468 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0082e36b60
commit
cd9de0837f
|
@ -184,11 +184,11 @@ module IssuesHelper
|
|||
|
||||
def sidebar_queries
|
||||
unless @sidebar_queries
|
||||
@sidebar_queries = IssueQuery.visible.all(
|
||||
:order => "#{Query.table_name}.name ASC",
|
||||
@sidebar_queries = IssueQuery.visible.
|
||||
order("#{Query.table_name}.name ASC").
|
||||
# Project specific queries and global queries
|
||||
:conditions => (@project.nil? ? ["project_id IS NULL"] : ["project_id IS NULL OR project_id = ?", @project.id])
|
||||
)
|
||||
where(@project.nil? ? ["project_id IS NULL"] : ["project_id IS NULL OR project_id = ?", @project.id]).
|
||||
all
|
||||
end
|
||||
@sidebar_queries
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue