mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-23 19:59:18 -08:00
Fixed #7270 - Checking-in Assets via API Removes the Item's Asset Name
This commit is contained in:
parent
9af9ed9eb9
commit
ab86e42b2e
|
@ -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')) {
|
||||
|
|
Loading…
Reference in a new issue