diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/issue_statuses_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/roles_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/trackers_controller.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/issue_statuses_controller.rb b/app/controllers/issue_statuses_controller.rb index ddaf9304d..b24befd5b 100644 --- a/app/controllers/issue_statuses_controller.rb +++ b/app/controllers/issue_statuses_controller.rb @@ -25,7 +25,7 @@ class IssueStatusesController < ApplicationController def index respond_to do |format| format.html { - @issue_status_pages, @issue_statuses = paginate :issue_statuses, :per_page => 25, :order => "position" + @issue_status_pages, @issue_statuses = paginate IssueStatus.sorted, :per_page => 25 render :action => "index", :layout => false if request.xhr? } format.api { diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb index 292304260..b8a046a99 100644 --- a/app/controllers/roles_controller.rb +++ b/app/controllers/roles_controller.rb @@ -26,7 +26,7 @@ class RolesController < ApplicationController def index respond_to do |format| format.html { - @role_pages, @roles = paginate :roles, :per_page => 25, :order => 'builtin, position' + @role_pages, @roles = paginate Role.sorted, :per_page => 25 render :action => "index", :layout => false if request.xhr? } format.api { diff --git a/app/controllers/trackers_controller.rb b/app/controllers/trackers_controller.rb index 602ea5288..2811929fa 100644 --- a/app/controllers/trackers_controller.rb +++ b/app/controllers/trackers_controller.rb @@ -25,7 +25,7 @@ class TrackersController < ApplicationController def index respond_to do |format| format.html { - @tracker_pages, @trackers = paginate :trackers, :per_page => 10, :order => 'position' + @tracker_pages, @trackers = paginate Tracker.sorted, :per_page => 10 render :action => "index", :layout => false if request.xhr? } format.api { |