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) {