Fix sorting by role with filtering in team members table [SCI-5908]

This commit is contained in:
Oleksii Kriuchykhin 2021-07-16 10:49:41 +02:00
parent 47b04a175d
commit 7204e47ba5

View file

@ -18,8 +18,8 @@ class CustomDatatable < AjaxDatatablesRails::Base
def fetch_records
records = get_raw_records
records = sort_records(records) if order_params.present?
records = filter_records(records) if dt_params[:search].present?
records = sort_records(records) if order_params.present?
records = paginate_records(records) unless dt_params[:length].present? &&
dt_params[:length] == '-1'
records