Show the QR code on the asset page regardless of label settings

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-05-07 11:34:21 +01:00
parent 1c57bfaa39
commit a916767392
2 changed files with 4 additions and 7 deletions
@@ -519,7 +519,7 @@ class AssetsController extends Controller
{
$settings = Setting::getSettings();
if (($settings->qr_code == '1') && ($settings->label2_2d_type !== 'none')) {
if ($settings->label2_2d_type !== 'none') {
if ($asset) {
$size = Helper::barcodeDimensions($settings->label2_2d_type);
+3 -6
View File
@@ -405,12 +405,9 @@
</ul>
</div>
@endif
@if ($snipeSettings->qr_code=='1')
<div class="col-md-12 text-center" style="padding-top: 15px;">
<img src="{{ config('app.url') }}/hardware/{{ $asset->id }}/qr_code" class="img-thumbnail" style="height: 150px; width: 150px; margin-right: 10px;" alt="QR code for {{ $asset->getDisplayNameAttribute() }}">
</div>
@endif
<div class="col-md-12 text-center" style="padding-top: 15px;">
<img src="{{ config('app.url') }}/hardware/{{ $asset->id }}/qr_code" class="img-thumbnail" style="height: 150px; width: 150px; margin-right: 10px;" alt="QR code for {{ $asset->getDisplayNameAttribute() }}">
</div>
<br><br>
</div>