Fixed asset models restore

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-10-04 19:29:13 -07:00
parent 8fe59f8383
commit b20c841a89
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ class AssetModelsController extends Controller
if ($request->filled('status')) {
if ($request->input('status')=='deleted') {
$assetmodels->onlyTrashed();
}

View file

@ -69,7 +69,7 @@
data-sort-order="asc"
id="asssetModelsTable"
class="table table-striped snipe-table"
data-url="{{ route('api.models.index') }}"
data-url="{{ route('api.models.index', ['status' => request('status')]) }}"
data-export-options='{
"fileName": "export-models-{{ date('Y-m-d') }}",
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]