mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 09:35:49 +00:00
Remove assets query, since we handle that via API call now and just need the count()
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
@ -57,7 +57,7 @@ class ViewAssetsController extends Controller
|
||||
*/
|
||||
public function getRequestableIndex()
|
||||
{
|
||||
$assets = Asset::with('model', 'defaultLoc', 'location', 'assignedTo', 'requests')->Hardware()->RequestableAssets()->get();
|
||||
$assets = Asset::with('model', 'defaultLoc', 'location', 'assignedTo', 'requests')->Hardware()->RequestableAssets();
|
||||
$models = AssetModel::with('category', 'requests', 'assets')->RequestableModels()->get();
|
||||
|
||||
return view('account/requestable-assets', compact('assets', 'models'));
|
||||
|
||||
Reference in New Issue
Block a user