mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
Fixed asset models restore
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
8fe59f8383
commit
b20c841a89
|
@ -67,7 +67,7 @@ class AssetModelsController extends Controller
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($request->filled('status')) {
|
if ($request->input('status')=='deleted') {
|
||||||
$assetmodels->onlyTrashed();
|
$assetmodels->onlyTrashed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
data-sort-order="asc"
|
data-sort-order="asc"
|
||||||
id="asssetModelsTable"
|
id="asssetModelsTable"
|
||||||
class="table table-striped snipe-table"
|
class="table table-striped snipe-table"
|
||||||
data-url="{{ route('api.models.index') }}"
|
data-url="{{ route('api.models.index', ['status' => request('status')]) }}"
|
||||||
data-export-options='{
|
data-export-options='{
|
||||||
"fileName": "export-models-{{ date('Y-m-d') }}",
|
"fileName": "export-models-{{ date('Y-m-d') }}",
|
||||||
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
||||||
|
|
Loading…
Reference in a new issue