Pass the model_id variable in the controller and get it only if we are cloning the asset model
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user