3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 19:45:51 +00:00

Adds reqestable as model bulk edit field

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2021-10-28 15:15:54 -07:00
parent 30cfc34ecf
commit 52ef9280ba
4 changed files with 33 additions and 3 deletions

View File

@ -80,6 +80,11 @@ class BulkAssetModelsController extends Controller
$update_array['depreciation_id'] = $request->input('depreciation_id');
}
if ($request->filled('requestable') != '') {
$update_array['requestable'] = $request->input('requestable');
}
if (count($update_array) > 0) {
AssetModel::whereIn('id', $models_raw_array)->update($update_array);