3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-03-30 04:14:17 +00:00

Merge pull request #12378 from marcusmoore/fix/allow-removing-asset-name-during-checkout

Allow users to set a blank asset name during checkout
This commit is contained in:
snipe
2023-01-19 14:50:58 -08:00
committed by GitHub

View File

@ -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 {