mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
fix to allow empty SN
This commit is contained in:
parent
df6b4ff349
commit
eda5bbf305
|
@ -34,7 +34,7 @@ class LicenseImporter extends ItemImporter
|
||||||
public function createLicenseIfNotExists(array $row)
|
public function createLicenseIfNotExists(array $row)
|
||||||
{
|
{
|
||||||
$editingLicense = false;
|
$editingLicense = false;
|
||||||
$license = License::where('serial', $this->item['serial'])
|
$license = License::where('serial', $this->item['serial'])->where('name', $this->item['name'])
|
||||||
->first();
|
->first();
|
||||||
if ($license) {
|
if ($license) {
|
||||||
if (! $this->updating) {
|
if (! $this->updating) {
|
||||||
|
|
Loading…
Reference in a new issue