mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Hotfix: Fix ability to create assets (#6790)
This commit is contained in:
parent
5293cb30bd
commit
0840ab41d5
|
@ -151,16 +151,15 @@ class AssetsController extends Controller
|
|||
$asset->location_id = $request->input('rtd_location_id', null);
|
||||
}
|
||||
|
||||
$asset->asset_tag = $asset_tags[$a];
|
||||
|
||||
// Create the image (if one was chosen.)
|
||||
if ($request->hasFile('image')) {
|
||||
$image = $request->input('image');
|
||||
|
||||
|
||||
$asset->asset_tag = $asset_tags[$a];
|
||||
$asset = $request->handleImages($asset);
|
||||
}
|
||||
|
||||
|
||||
// Update custom fields in the database.
|
||||
// Validation for these fields is handled through the AssetRequest form request
|
||||
$model = AssetModel::find($request->get('model_id'));
|
||||
|
|
Loading…
Reference in a new issue