fix bulk req index
This commit is contained in:
@@ -44,7 +44,7 @@ class BulkUpdateRequestsController < ApplicationController
|
||||
end
|
||||
|
||||
def index
|
||||
@bulk_update_requests = BulkUpdateRequest.paginate(params[:page])
|
||||
@bulk_update_requests = BulkUpdateRequest.search(params[:search]).order("(case status when 'pending' then 0 when 'approved' then 1 else 2 end), id desc").paginate(params[:page], :limit => params[:limit])
|
||||
respond_with(@bulk_update_requests)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user