location update bug fix and test

This commit is contained in:
akemidx
2025-04-10 14:46:52 -04:00
parent 0d6a83197a
commit cd10cd34f4
2 changed files with 23 additions and 5 deletions
@@ -351,11 +351,6 @@ class AssetsController extends Controller
event(new CheckoutableCheckedIn($asset, $target, auth()->user(), 'Checkin on asset update with '.$status->getStatuslabelType().' status', date('Y-m-d H:i:s'), $originalValues));
}
if ($asset->assigned_to == '') {
$asset->location_id = $request->input('rtd_location_id', null);
}
if ($request->filled('image_delete')) {
try {
unlink(public_path().'/uploads/assets/'.$asset->image);