3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-03-30 04:14:17 +00:00

Pass the model_id variable in the controller and get it only if we are cloning the asset model

This commit is contained in:
Ivan Nieto Vivanco
2023-08-28 16:23:26 -06:00
parent a12a68e4e9
commit 4e4ba38038
2 changed files with 3 additions and 7 deletions

View File

@ -286,6 +286,7 @@ class AssetModelsController extends Controller
return view('models/edit')
->with('depreciation_list', Helper::depreciationList())
->with('item', $model)
->with('model_id', $model_to_clone->id)
->with('clone_model', $model_to_clone);
}