mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 04:03:34 -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)
|
||||
{
|
||||
$editingLicense = false;
|
||||
$license = License::where('serial', $this->item['serial'])
|
||||
$license = License::where('serial', $this->item['serial'])->where('name', $this->item['name'])
|
||||
->first();
|
||||
if ($license) {
|
||||
if (! $this->updating) {
|
||||
|
|
Loading…
Reference in a new issue