Merge pull request #10567 from inietov/fixes/importing_and_checking_out_licenses_master

Fixes Importing licenses without product key duplicates the license
This commit is contained in:
snipe 2022-01-27 10:58:06 -08:00 committed by GitHub
commit 9634dde0dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,6 @@ class LicenseImporter extends ItemImporter
{
$editingLicense = false;
$license = License::where('name', $this->item['name'])
->where('serial', $this->item['serial'])
->first();
if ($license) {
if (!$this->updating) {