node-datatable icon indicating copy to clipboard operation
node-datatable copied to clipboard

Fix(recordsTotal): do not use search string for total count

Open ghybs opened this issue 7 years ago • 1 comments

Hi,

This PR fixes https://github.com/jpravetz/node-datatable/issues/21

It adds a new parameter to buildCountStatement and buildWherePartial private functions, so that we can differentiate recordsTotal and recordsFiltered built queries.

See it in action: https://plnkr.co/edit/4VHcTgRzFziLQ9K8RUST?p=preview

ghybs avatar Mar 07 '18 09:03 ghybs

@jpravetz This looks good to me. It just needs another test run.

bean5 avatar Jul 24 '24 11:07 bean5