mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Fix 2D barcode defaults
This commit is contained in:
parent
17e81af4cd
commit
b72c6b7afc
|
@ -124,9 +124,9 @@ class Label implements View
|
||||||
if ($template->getSupport2DBarcode()) {
|
if ($template->getSupport2DBarcode()) {
|
||||||
$barcode2DType = $settings->label2_2d_type;
|
$barcode2DType = $settings->label2_2d_type;
|
||||||
$barcode2DType = ($barcode2DType == 'default') ?
|
$barcode2DType = ($barcode2DType == 'default') ?
|
||||||
(($settings->qr_code) ? $settings->barcode_type : null) :
|
$settings->barcode_type :
|
||||||
$barcode2DType;
|
$barcode2DType;
|
||||||
if ($barcode2DType != 'none') {
|
if (($barcode2DType != 'none') && (!is_null($barcode2DType))) {
|
||||||
switch ($settings->label2_2d_target) {
|
switch ($settings->label2_2d_target) {
|
||||||
case 'ht_tag': $barcode2DTarget = route('ht/assetTag', $asset->asset_tag); break;
|
case 'ht_tag': $barcode2DTarget = route('ht/assetTag', $asset->asset_tag); break;
|
||||||
case 'hardware_id':
|
case 'hardware_id':
|
||||||
|
|
Loading…
Reference in a new issue