1. Unofficial Redmine Clones
  2. Untitled project
  3. redmine

Commits

jplang  committed e3a9437

Code cleanup.

  • Participants
  • Parent commits ccd9174
  • Branches default

Comments (0)

Files changed (1)

File app/helpers/issues_helper.rb

View file
 
   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