fix to allow empty SN

This commit is contained in:
akemidx 2023-06-15 14:42:34 -04:00
parent df6b4ff349
commit eda5bbf305

View file

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