Fixed #7270 - Checking-in Assets via API Removes the Item's Asset Name

This commit is contained in:
snipe 2019-07-26 12:37:38 -07:00
parent 9af9ed9eb9
commit ab86e42b2e

View file

@ -674,7 +674,11 @@ class AssetsController extends Controller
$asset->assigned_to = null;
$asset->assignedTo()->disassociate($asset);
$asset->accepted = null;
$asset->name = Input::get('name');
if ($request->filled('name')) {
$asset->name = $request->input('name');
}
$asset->location_id = $asset->rtd_location_id;
if ($request->filled('location_id')) {