mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 22:37:28 -08:00
Fixed number of results returned
This commit is contained in:
parent
0cf4014b75
commit
268308004c
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue