Hotfix: Fix ability to create assets (#6790)
This commit is contained in:
parent
5293cb30bd
commit
0840ab41d5
1 changed files with 6 additions and 7 deletions
|
@ -151,15 +151,14 @@ class AssetsController extends Controller
|
||||||
$asset->location_id = $request->input('rtd_location_id', null);
|
$asset->location_id = $request->input('rtd_location_id', null);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create the image (if one was chosen.)
|
|
||||||
if ($request->hasFile('image')) {
|
|
||||||
$image = $request->input('image');
|
|
||||||
|
|
||||||
|
|
||||||
$asset->asset_tag = $asset_tags[$a];
|
$asset->asset_tag = $asset_tags[$a];
|
||||||
$asset = $request->handleImages($asset);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// Create the image (if one was chosen.)
|
||||||
|
if ($request->hasFile('image')) {
|
||||||
|
$image = $request->input('image');
|
||||||
|
|
||||||
|
$asset = $request->handleImages($asset);
|
||||||
|
}
|
||||||
|
|
||||||
// Update custom fields in the database.
|
// Update custom fields in the database.
|
||||||
// Validation for these fields is handled through the AssetRequest form request
|
// Validation for these fields is handled through the AssetRequest form request
|
||||||
|
|
Loading…
Add table
Reference in a new issue