diff --git a/app/Http/Controllers/Assets/AssetsController.php b/app/Http/Controllers/Assets/AssetsController.php index 6fd27ed03..8f3b1f054 100755 --- a/app/Http/Controllers/Assets/AssetsController.php +++ b/app/Http/Controllers/Assets/AssetsController.php @@ -535,7 +535,7 @@ class AssetsController extends Controller { $settings = Setting::getSettings(); - if ($settings->qr_code == '1') { + if (($settings->qr_code === '1') && ($settings->label2_2d_type !== 'none')) { $asset = Asset::withTrashed()->find($assetId); if ($asset) { $size = Helper::barcodeDimensions($settings->label2_2d_type); diff --git a/package-lock.json b/package-lock.json index 7de7aaea7..ed97eb48c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "less-loader": "^6.0", "list.js": "^1.5.0", "morris.js": "github:morrisjs/morris.js", - "papaparse": "5.4.1", + "papaparse": "5.5.1", "select2": "4.0.13", "sheetjs": "^2.0.0", "signature_pad": "^4.2.0", @@ -8368,9 +8368,9 @@ "license": "(MIT AND Zlib)" }, "node_modules/papaparse": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.4.1.tgz", - "integrity": "sha512-HipMsgJkZu8br23pW15uvo6sib6wne/4woLZPlFf3rpDyMe9ywEXUsuD7+6K9PRkJlVT51j/sCOYDKGGS3ZJrw==" + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.5.1.tgz", + "integrity": "sha512-EuEKUhyxrHVozD7g3/ztsJn6qaKse8RPfR6buNB2dMJvdtXNhcw8jccVi/LxNEY3HVrV6GO6Z4OoeCG9Iy9wpA==" }, "node_modules/param-case": { "version": "3.0.4", diff --git a/package.json b/package.json index e86bf9066..db5f72189 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "less-loader": "^6.0", "list.js": "^1.5.0", "morris.js": "github:morrisjs/morris.js", - "papaparse": "5.4.1", + "papaparse": "5.5.1", "select2": "4.0.13", "sheetjs": "^2.0.0", "signature_pad": "^4.2.0", diff --git a/resources/views/groups/edit.blade.php b/resources/views/groups/edit.blade.php index cb95b3762..bd6bd85d1 100755 --- a/resources/views/groups/edit.blade.php +++ b/resources/views/groups/edit.blade.php @@ -56,7 +56,7 @@
- + {!! $errors->first('name', '') !!}
@@ -88,11 +88,23 @@ - {{ Form::radio('permission['.$localPermission['permission'].']', '1',(array_key_exists($localPermission['permission'], $groupPermissions) ? $groupPermissions[$localPermission['permission'] ] == '1' : null),['value'=>"grant", 'aria-label'=> 'permission['.$localPermission['permission'].']']) }} + - {{ Form::radio('permission['.$localPermission['permission'].']', '0',(array_key_exists($localPermission['permission'], $groupPermissions) ? $groupPermissions[$localPermission['permission'] ] == '0' : null),['value'=>"grant", 'aria-label'=> 'permission['.$localPermission['permission'].']']) }} + @@ -109,11 +121,23 @@ - {{ Form::radio("$area", '1',false,['value'=>"grant", 'data-checker-group' => str_slug($area), 'aria-label'=> $area]) }} + - {{ Form::radio("$area", '0',false,['value'=>"deny", 'data-checker-group' => str_slug($area), 'aria-label'=> $area]) }} + @@ -129,11 +153,25 @@ - {{ Form::radio('permission['.$this_permission['permission'].']', '1',(array_key_exists($this_permission['permission'], $groupPermissions) ? $groupPermissions[$this_permission['permission'] ] == '1' : null),['class'=>'radiochecker-'.str_slug($area), 'aria-label'=>'permission['.$this_permission['permission'].']']) }} + - {{ Form::radio('permission['.$this_permission['permission'].']', '0',(array_key_exists($this_permission['permission'], $groupPermissions) ? $groupPermissions[$this_permission['permission'] ] == '0' : null),['class'=>'radiochecker-'.str_slug($area), 'aria-label'=>'permission['.$this_permission['permission'].']']) }} + diff --git a/resources/views/hardware/bulk.blade.php b/resources/views/hardware/bulk.blade.php index cc44993af..b8189d59c 100755 --- a/resources/views/hardware/bulk.blade.php +++ b/resources/views/hardware/bulk.blade.php @@ -140,15 +140,15 @@
diff --git a/resources/views/hardware/quickscan-checkin.blade.php b/resources/views/hardware/quickscan-checkin.blade.php index de892399c..0fca07307 100644 --- a/resources/views/hardware/quickscan-checkin.blade.php +++ b/resources/views/hardware/quickscan-checkin.blade.php @@ -31,7 +31,7 @@
- {{ Form::label('asset_tag', trans('general.asset_tag'), array('class' => 'col-md-3 control-label', 'id' => 'checkin_tag')) }} +
@@ -57,7 +57,7 @@
- {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('note', '') !!} diff --git a/resources/views/hardware/quickscan.blade.php b/resources/views/hardware/quickscan.blade.php index 867eeaa2b..9daf65650 100644 --- a/resources/views/hardware/quickscan.blade.php +++ b/resources/views/hardware/quickscan.blade.php @@ -16,7 +16,7 @@ } - +
{{ Form::open(['method' => 'POST', 'class' => 'form-horizontal', 'role' => 'form', 'id' => 'audit-form' ]) }} @@ -29,7 +29,7 @@
- {{ Form::label('asset_tag', trans('general.asset_tag'), array('class' => 'col-md-3 control-label', 'id' => 'audit_tag')) }} +
@@ -60,7 +60,7 @@
- {{ Form::label('next_audit_date', trans('general.next_audit_date'), array('class' => 'col-md-3 control-label')) }} +
@@ -73,7 +73,7 @@
- {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('note', '') !!} @@ -101,7 +101,7 @@

{{ trans('general.bulkaudit_status') }} (0 {{ trans('general.assets_audited') }})

- + @@ -158,7 +158,7 @@ var audio = new Audio('{{ config('app.url') }}/sounds/success.mp3'); audio.play() @endif - + incrementOnSuccess(); } else { handleAuditFail(data); diff --git a/resources/views/livewire/slack-settings-form.blade.php b/resources/views/livewire/slack-settings-form.blade.php index 76b398722..48e0fb72a 100644 --- a/resources/views/livewire/slack-settings-form.blade.php +++ b/resources/views/livewire/slack-settings-form.blade.php @@ -83,7 +83,7 @@
- {{ Form::label('webhook_endpoint', trans('admin/settings/general.webhook_endpoint',['app' => $webhook_name ])) }} +
@@ -100,7 +100,7 @@ @if($webhook_selected != 'microsoft' && $webhook_selected!= 'google')
- {{ Form::label('webhook_channel', trans('admin/settings/general.webhook_channel',['app' => $webhook_name ])) }} +
@@ -118,7 +118,7 @@ @if($webhook_selected != 'microsoft' && $webhook_selected != 'google')
- {{ Form::label('webhook_botname', trans('admin/settings/general.webhook_botname',['app' => $webhook_name ])) }} +
diff --git a/resources/views/locations/print.blade.php b/resources/views/locations/print.blade.php index 9f54978ff..a047f0227 100644 --- a/resources/views/locations/print.blade.php +++ b/resources/views/locations/print.blade.php @@ -126,7 +126,7 @@ @foreach ($assets as $asset) @php - if($snipeSettings->show_archived_in_list != 1 && $asset->assetstatus->archived == 1){ + if($snipeSettings->show_archived_in_list != 1 && $asset->assetstatus?->archived == 1){ continue; } @endphp diff --git a/resources/views/models/bulk-edit.blade.php b/resources/views/models/bulk-edit.blade.php index 8a053b048..7a283fbba 100644 --- a/resources/views/models/bulk-edit.blade.php +++ b/resources/views/models/bulk-edit.blade.php @@ -84,15 +84,15 @@
diff --git a/resources/views/partials/forms/checkout-selector.blade.php b/resources/views/partials/forms/checkout-selector.blade.php index 268089a7d..4fb4ccbd8 100644 --- a/resources/views/partials/forms/checkout-selector.blade.php +++ b/resources/views/partials/forms/checkout-selector.blade.php @@ -1,5 +1,5 @@
- {{ Form::label('checkout_to_type', trans('admin/hardware/form.checkout_to'), array('class' => 'col-md-3 control-label')) }} +
@if ((isset($user_select)) && ($user_select!='false')) diff --git a/resources/views/partials/forms/edit/accessory-select.blade.php b/resources/views/partials/forms/edit/accessory-select.blade.php index d34b6b2fe..e047d16d2 100644 --- a/resources/views/partials/forms/edit/accessory-select.blade.php +++ b/resources/views/partials/forms/edit/accessory-select.blade.php @@ -1,6 +1,6 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
diff --git a/resources/views/partials/forms/edit/category-select.blade.php b/resources/views/partials/forms/edit/category-select.blade.php index f4b2ace30..51a5c81a6 100644 --- a/resources/views/partials/forms/edit/category-select.blade.php +++ b/resources/views/partials/forms/edit/category-select.blade.php @@ -1,7 +1,7 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
diff --git a/resources/views/partials/forms/edit/datepicker.blade.php b/resources/views/partials/forms/edit/datepicker.blade.php index 3bd0200d0..d91659134 100644 --- a/resources/views/partials/forms/edit/datepicker.blade.php +++ b/resources/views/partials/forms/edit/datepicker.blade.php @@ -1,6 +1,6 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
diff --git a/resources/views/partials/forms/edit/department-select.blade.php b/resources/views/partials/forms/edit/department-select.blade.php index f0fc16dd6..0648f991d 100644 --- a/resources/views/partials/forms/edit/department-select.blade.php +++ b/resources/views/partials/forms/edit/department-select.blade.php @@ -1,6 +1,6 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('fax', '') !!}
-
\ No newline at end of file +
diff --git a/resources/views/partials/forms/edit/kit-select.blade.php b/resources/views/partials/forms/edit/kit-select.blade.php index d8c6ba101..cd1801f16 100644 --- a/resources/views/partials/forms/edit/kit-select.blade.php +++ b/resources/views/partials/forms/edit/kit-select.blade.php @@ -1,6 +1,6 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
diff --git a/resources/views/partials/forms/edit/location-profile-select.blade.php b/resources/views/partials/forms/edit/location-profile-select.blade.php index 14dc4793a..f3db9ad9b 100644 --- a/resources/views/partials/forms/edit/location-profile-select.blade.php +++ b/resources/views/partials/forms/edit/location-profile-select.blade.php @@ -1,7 +1,7 @@
- {{ Form::label('location_id', $translated_name, array('class' => 'col-md-3 control-label')) }} +
@isset($selected) diff --git a/resources/views/partials/forms/edit/manufacturer-select.blade.php b/resources/views/partials/forms/edit/manufacturer-select.blade.php index c8cafddf8..44e831fd5 100644 --- a/resources/views/partials/forms/edit/manufacturer-select.blade.php +++ b/resources/views/partials/forms/edit/manufacturer-select.blade.php @@ -1,7 +1,7 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
diff --git a/resources/views/partials/forms/edit/phone.blade.php b/resources/views/partials/forms/edit/phone.blade.php index 1a9d407a1..b44480f16 100644 --- a/resources/views/partials/forms/edit/phone.blade.php +++ b/resources/views/partials/forms/edit/phone.blade.php @@ -1,5 +1,5 @@
- {{ Form::label('phone', trans('admin/suppliers/table.phone'), array('class' => 'col-md-3 control-label')) }} +
{{Form::text('phone', old('phone', $item->phone), array('class' => 'form-control', 'aria-label'=>'phone', 'maxlength'=>'191')) }} {!! $errors->first('phone', '') !!} diff --git a/resources/views/partials/forms/edit/status-select.blade.php b/resources/views/partials/forms/edit/status-select.blade.php index ae4a4f2d1..bd1fb5014 100644 --- a/resources/views/partials/forms/edit/status-select.blade.php +++ b/resources/views/partials/forms/edit/status-select.blade.php @@ -1,7 +1,7 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
diff --git a/resources/views/partials/forms/edit/user-select.blade.php b/resources/views/partials/forms/edit/user-select.blade.php index 629e94239..e73d09def 100644 --- a/resources/views/partials/forms/edit/user-select.blade.php +++ b/resources/views/partials/forms/edit/user-select.blade.php @@ -1,6 +1,6 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
radioValue('deleted_assets', 'exclude_deleted', true)) + aria-label="deleted_assets" + > + {{ trans('general.exclude_deleted') }}
diff --git a/resources/views/settings/alerts.blade.php b/resources/views/settings/alerts.blade.php index fb614a2e8..703b3cfd7 100644 --- a/resources/views/settings/alerts.blade.php +++ b/resources/views/settings/alerts.blade.php @@ -66,7 +66,7 @@
- {{ Form::label('alert_email', trans('admin/settings/general.alert_email')) }} +
@@ -80,7 +80,7 @@
- {{ Form::label('admin_cc_email', trans('admin/settings/general.admin_cc_email')) }} +
@@ -95,7 +95,7 @@
- {{ Form::label('alert_interval', trans('admin/settings/general.alert_interval')) }} +
{{ Form::text('alert_interval', old('alert_interval', $setting->alert_interval), array('class' => 'form-control','placeholder' => '30', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} @@ -106,7 +106,7 @@
- {{ Form::label('alert_threshold', trans('admin/settings/general.alert_inv_threshold')) }} +
{{ Form::text('alert_threshold', old('alert_threshold', $setting->alert_threshold), array('class' => 'form-control','placeholder' => '5', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} @@ -118,7 +118,7 @@
- {{ Form::label('audit_interval', trans('admin/settings/general.audit_interval')) }} +
{{ Form::text('audit_interval', old('audit_interval', $setting->audit_interval), array('class' => 'form-control','placeholder' => '12', 'maxlength'=>'3')) }} @@ -133,7 +133,7 @@
- {{ Form::label('audit_warning_days', trans('admin/settings/general.audit_warning_days')) }} +
{{ Form::text('audit_warning_days', old('audit_warning_days', $setting->audit_warning_days), array('class' => 'form-control','placeholder' => '14', 'maxlength'=>'3')) }} @@ -148,7 +148,7 @@
- {{ Form::label('due_checkin_days', trans('admin/settings/general.due_checkin_days')) }} +
{{ Form::text('due_checkin_days', old('due_checkin_days', $setting->due_checkin_days), array('class' => 'form-control','placeholder' => '14', 'maxlength'=>'3')) }} diff --git a/resources/views/settings/asset_tags.blade.php b/resources/views/settings/asset_tags.blade.php index 020d97a75..e9a33fa21 100644 --- a/resources/views/settings/asset_tags.blade.php +++ b/resources/views/settings/asset_tags.blade.php @@ -55,7 +55,7 @@
- {{ Form::label('next_auto_tag_base', trans('admin/settings/general.next_auto_tag_base')) }} +
{{ Form::text('next_auto_tag_base', old('next_auto_tag_base', $setting->next_auto_tag_base), array('class' => 'form-control', 'style'=>'width: 150px;', 'aria-label'=>'next_auto_tag_base')) }} @@ -67,7 +67,7 @@
- {{ Form::label('auto_increment_prefix', trans('admin/settings/general.auto_increment_prefix')) }} +
@if ($setting->auto_increment_assets == 1) @@ -82,7 +82,7 @@
- {{ Form::label('zerofill_count', trans('admin/settings/general.zerofill_count')) }} +
{{ Form::text('zerofill_count', old('zerofill_count', $setting->zerofill_count), array('class' => 'form-control', 'style'=>'width: 150px;', 'aria-label'=>'zerofill_count')) }} diff --git a/resources/views/settings/branding.blade.php b/resources/views/settings/branding.blade.php index c586917ef..ee31677bc 100644 --- a/resources/views/settings/branding.blade.php +++ b/resources/views/settings/branding.blade.php @@ -45,7 +45,7 @@
- {{ Form::label('site_name', trans('admin/settings/general.site_name')) }} +
@if (config('app.lock_passwords')===true) @@ -64,7 +64,7 @@
- {{ Form::label('brand', trans('admin/settings/general.web_brand')) }} +
{!! Form::select('brand', array('1'=>'Text','2'=>'Logo','3'=>'Logo + Text'), old('brand', $setting->brand), array('class' => 'form-control select2', 'style'=>'width: 150px ;')) !!} @@ -188,7 +188,7 @@
- {{ Form::label('header_color', trans('admin/settings/general.header_color')) }} +
@@ -204,7 +204,7 @@
- {{ Form::label('skin', trans('general.skin')) }} +
{!! Form::skin('skin', old('skin', $setting->skin), 'select2') !!} @@ -229,7 +229,7 @@
- {{ Form::label('custom_css', trans('admin/settings/general.custom_css')) }} +
@if (config('app.lock_passwords')===true) @@ -248,7 +248,7 @@
- {{ Form::label('support_footer', trans('admin/settings/general.support_footer')) }} +
@if (config('app.lock_passwords')===true) @@ -267,7 +267,7 @@
- {{ Form::label('version_footer', trans('admin/settings/general.version_footer')) }} +
@if (config('app.lock_passwords')===true) @@ -285,7 +285,7 @@
- {{ Form::label('footer_text', trans('admin/settings/general.footer_text')) }} +
@if (config('app.lock_passwords')===true) diff --git a/resources/views/settings/general.blade.php b/resources/views/settings/general.blade.php index 1de5d4035..be19a9ee3 100644 --- a/resources/views/settings/general.blade.php +++ b/resources/views/settings/general.blade.php @@ -77,7 +77,7 @@
- {{ Form::label('email_domain', trans('general.email_domain')) }} +
{{ Form::text('email_domain', old('email_domain', $setting->email_domain), array('class' => 'form-control','placeholder' => 'example.com')) }} @@ -90,7 +90,7 @@
- {{ Form::label('email_format', trans('general.email_format')) }} +
{!! Form::username_format('email_format', old('email_format', $setting->email_format), 'select2') !!} @@ -101,7 +101,7 @@
- {{ Form::label('username_format', trans('general.username_format')) }} +
{!! Form::username_format('username_format', old('username_format', $setting->username_format), 'select2') !!} @@ -182,7 +182,7 @@
- {{ Form::label('per_page', trans('admin/settings/general.per_page')) }} +
{{ Form::text('per_page', old('per_page', $setting->per_page), array('class' => 'form-control','placeholder' => '5', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} @@ -193,7 +193,7 @@
- {{ Form::label('thumbnail_max_h', trans('admin/settings/general.thumbnail_max_h')) }} +
{{ Form::text('thumbnail_max_h', old('thumbnail_max_h', $setting->thumbnail_max_h), array('class' => 'form-control','placeholder' => '50', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} @@ -205,7 +205,7 @@
- {{ Form::label('default_eula_text', trans('admin/settings/general.default_eula_text')) }} +
{{ Form::textarea('default_eula_text', old('default_eula_text', $setting->default_eula_text), array('class' => 'form-control','placeholder' => 'Add your default EULA text')) }} @@ -236,7 +236,7 @@
- {{ Form::label('login_note', trans('admin/settings/general.login_note')) }} +
@if (config('app.lock_passwords')) @@ -255,7 +255,7 @@
- {{ Form::label('login_note', 'Test Mail') }} +
@@ -278,7 +278,7 @@
- {{ Form::label('dashboard_message', trans('admin/settings/general.dashboard_message')) }} +
@if (config('app.lock_passwords')) @@ -302,8 +302,7 @@
- {{ Form::label('show_archived_in_list', - trans('admin/settings/general.show_archived_in_list')) }} +
@@ -318,8 +317,7 @@
- {{ Form::label('show_assigned_assets', - trans('admin/settings/general.show_assigned_assets')) }} +