mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
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:
commit
9634dde0dd
|
@ -32,7 +32,6 @@ class LicenseImporter extends ItemImporter
|
||||||
{
|
{
|
||||||
$editingLicense = false;
|
$editingLicense = false;
|
||||||
$license = License::where('name', $this->item['name'])
|
$license = License::where('name', $this->item['name'])
|
||||||
->where('serial', $this->item['serial'])
|
|
||||||
->first();
|
->first();
|
||||||
if ($license) {
|
if ($license) {
|
||||||
if (!$this->updating) {
|
if (!$this->updating) {
|
||||||
|
|
Loading…
Reference in a new issue