A free open source IT asset/license management system
Fix License Import. (#4121)
Daniel Meltzerd119372ff0ab
diff --git a/app/Importer/LicenseImporter.php b/app/Importer/LicenseImporter.phpindex 207e346a52..8d1a0ac8f2 100644--- a/app/Importer/LicenseImporter.php+++ b/app/Importer/LicenseImporter.php@@ -33,10 +33,12 @@ class LicenseImporter extends ItemImporterpublic function createLicenseIfNotExists(array $row){$editingLicense = false;- $license = License::where('name', $this->item['name'])->first();+ $license = License::where('name', $this->item['name'])+ ->where('serial', $this->item['serial'])+ ->first();if ($license) {if (!$this->updating) {- $this->log('A matching License ' . $this->item['name'] . ' already exists');+ $this->log('A matching License ' . $this->item['name'] . 'with serial ' . $this->item['serial'] . ' already exists');return;}