mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fixes #2404 Only update name of asset if it isn't null.
This commit is contained in:
parent
29c4189419
commit
44821b9667
|
@ -98,7 +98,11 @@ class Asset extends Depreciable
|
|||
$this->last_checkout = $checkout_at;
|
||||
|
||||
$this->assigneduser()->associate($user);
|
||||
$this->name = $name;
|
||||
|
||||
if($name != null)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
$settings = Setting::getSettings();
|
||||
|
||||
|
|
Loading…
Reference in a new issue