mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-06 11:27:32 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
6a5098fb0c
|
@ -1062,8 +1062,7 @@ class AssetsController extends Controller
|
||||||
|
|
||||||
$assets = Asset::select('assets.*')
|
$assets = Asset::select('assets.*')
|
||||||
->with('location', 'assetstatus', 'assetlog', 'company','assignedTo',
|
->with('location', 'assetstatus', 'assetlog', 'company','assignedTo',
|
||||||
'model.category', 'model.manufacturer', 'model.fieldset', 'supplier', 'requests')
|
'model.category', 'model.manufacturer', 'model.fieldset', 'supplier', 'requests');
|
||||||
->requestableAssets();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1101,6 +1100,7 @@ class AssetsController extends Controller
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$assets->requestableAssets();
|
||||||
|
|
||||||
// Make sure the offset and limit are actually integers and do not exceed system limits
|
// Make sure the offset and limit are actually integers and do not exceed system limits
|
||||||
$offset = ($request->input('offset') > $assets->count()) ? $assets->count() : app('api_offset_value');
|
$offset = ($request->input('offset') > $assets->count()) ? $assets->count() : app('api_offset_value');
|
||||||
|
|
Loading…
Reference in a new issue