mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-06 14:55:49 +00:00
Update the location ID if there is an rtd_location given
This commit is contained in:
@ -289,6 +289,11 @@ class AssetsController extends Controller
|
||||
$asset->requestable = $request->has('requestable');
|
||||
$asset->rtd_location_id = $request->input('rtd_location_id', null);
|
||||
|
||||
if ($asset->assigned_to=='') {
|
||||
$asset->location_id = $request->input('rtd_location_id', null);
|
||||
}
|
||||
|
||||
|
||||
if ($request->has('image_delete')) {
|
||||
unlink(public_path().'/uploads/assets/'.$asset->image);
|
||||
$asset->image = '';
|
||||
|
||||
Reference in New Issue
Block a user