Show the QR code on the asset page regardless of label settings
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user