mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Allow users to set a blank asset name during checkout
This commit is contained in:
parent
fa9116b184
commit
181f96ad33
|
@ -316,14 +316,10 @@ class Asset extends Depreciable
|
|||
}
|
||||
|
||||
$this->last_checkout = $checkout_at;
|
||||
$this->name = $name;
|
||||
|
||||
$this->assignedTo()->associate($target);
|
||||
|
||||
|
||||
if ($name != null) {
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
if ($location != null) {
|
||||
$this->location_id = $location;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue