Merge branch 'develop' of github.com:snipe/snipe-it into develop
This commit is contained in:
commit
c721fdd793
1 changed files with 4 additions and 2 deletions
|
@ -33,10 +33,12 @@ class LicenseImporter extends ItemImporter
|
||||||
public function createLicenseIfNotExists(array $row)
|
public function createLicenseIfNotExists(array $row)
|
||||||
{
|
{
|
||||||
$editingLicense = false;
|
$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 ($license) {
|
||||||
if (!$this->updating) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue