Skip to content

A free open source IT asset/license management system

fix to allow empty SN

akemidxeda5bbf3051f
diff --git a/app/Importer/LicenseImporter.php b/app/Importer/LicenseImporter.php
index 4b3fec21fb..b943b1e863 100644
--- a/app/Importer/LicenseImporter.php
+++ b/app/Importer/LicenseImporter.php
@@ -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) {