Merge pull request #3440 from okriuchykhin/ok_SCI_5908

Fix sorting by role with filtering in team members table [SCI-5908]
This commit is contained in:
artoscinote 2021-07-16 11:39:42 +02:00 committed by GitHub
commit 7940eb8465
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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