laravel4-datatables-package
laravel4-datatables-package copied to clipboard
Fixed issue of showing all rows in paging function
By default only 10 rows were shown in the paging function.Fixed the issue to show all rows if all selected.
I thought the -1 check was what would allow returning everything? also there is no reason to nest an if statement within an if statement if it has no else. Are you sure this is the place where the error happened?
Yes i agree there is no need for a nested if .. but yes this is where the problem is ..
-1 allows returning everything but bcoz of ur previous code it return only 10 rows.