Fixed number of results returned

This commit is contained in:
snipe 2017-01-11 23:45:03 -08:00
parent 0cf4014b75
commit 268308004c

View file

@ -158,9 +158,9 @@ class AssetsController extends Controller
$assets = $assets->orderBy($sort, $order);
break;
}
$assetCount = $assets->count();
$assets = $assets->skip($offset)->take($limit)->get();
$assetCount = $assets->count();
$rows = array();
foreach ($assets as $asset) {