mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-07 03:47:32 -08:00
Merge branch 'develop'
This commit is contained in:
commit
3e2c18cb4d
|
@ -7,6 +7,7 @@ use Illuminate\Auth\AuthenticationException;
|
||||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||||
use App\Helpers\Helper;
|
use App\Helpers\Helper;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
|
use Log;
|
||||||
|
|
||||||
class Handler extends ExceptionHandler
|
class Handler extends ExceptionHandler
|
||||||
{
|
{
|
||||||
|
@ -34,8 +35,10 @@ class Handler extends ExceptionHandler
|
||||||
*/
|
*/
|
||||||
public function report(Exception $exception)
|
public function report(Exception $exception)
|
||||||
{
|
{
|
||||||
\Log::error($exception); // rollbar
|
if ($this->shouldReport($exception)) {
|
||||||
parent::report($exception);
|
Log::error($exception);
|
||||||
|
return parent::report($exception);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,7 @@ $('.snipe-table').bootstrapTable({
|
||||||
ignoreColumn: ['actions','change','checkbox','checkincheckout','icon'],
|
ignoreColumn: ['actions','change','checkbox','checkincheckout','icon'],
|
||||||
worksheetName: "Snipe-IT Export",
|
worksheetName: "Snipe-IT Export",
|
||||||
jspdf: {
|
jspdf: {
|
||||||
|
orientation: 'l',
|
||||||
autotable: {
|
autotable: {
|
||||||
styles: {
|
styles: {
|
||||||
rowHeight: 20,
|
rowHeight: 20,
|
||||||
|
|
Loading…
Reference in a new issue