Skip to content

Commit

Permalink
Merge pull request #11357 from snipe/fixes/11343_null_asset_name
Browse files Browse the repository at this point in the history
Fixed #11343 - ability to null asset name on checkin
  • Loading branch information
snipe committed Jun 21, 2022
2 parents 3b462ff + 675f424 commit 8798064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/AssetsController.php
Expand Up @@ -858,7 +858,7 @@ public function checkin(Request $request, $asset_id)
$asset->assignedTo()->disassociate($asset);
$asset->accepted = null;

if ($request->filled('name')) {
if ($request->has('name')) {
$asset->name = $request->input('name');
}

Expand Down

0 comments on commit 8798064

Please sign in to comment.