Merge pull request #11357 from snipe/fixes/11343_null_asset_name

Fixed #11343 - ability to null asset name on checkin
This commit is contained in:
snipe 2022-06-21 10:58:28 -07:00 committed by GitHub
commit 87980643ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -858,7 +858,7 @@ class AssetsController extends Controller
$asset->assignedTo()->disassociate($asset); $asset->assignedTo()->disassociate($asset);
$asset->accepted = null; $asset->accepted = null;
if ($request->filled('name')) { if ($request->has('name')) {
$asset->name = $request->input('name'); $asset->name = $request->input('name');
} }