From 1f3193a56fb21655543726455c81a6bb79a254e3 Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Wed, 15 Jul 2020 13:50:12 +0200 Subject: [PATCH] TT#86351 prevent datatable queries with no clipping Change-Id: I0151a5602942f956c1879ee11f3edfd09e3eb112 (cherry picked from commit b821a57ca96334c4a039a70229deeaa5a4e8c504) --- lib/NGCP/Panel/Utils/Datatables.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/NGCP/Panel/Utils/Datatables.pm b/lib/NGCP/Panel/Utils/Datatables.pm index b009f8bf0f..e38327b3da 100644 --- a/lib/NGCP/Panel/Utils/Datatables.pm +++ b/lib/NGCP/Panel/Utils/Datatables.pm @@ -76,7 +76,6 @@ sub process { } } - if (!$use_rs_cb) { if (@searchColumns) { ($totalRecords, $totalRecordCountClipped) = _get_count_safe($c,$totalRecords_rs,$params); @@ -178,7 +177,7 @@ sub process { }); } #for case $displayRecords < 0, that means All. And for all other cases too. - @rows = $rs->all; + @rows = $rs->all if $displayRecords; } for my $row (@rows) {