Merge pull request #14380 from Godmartinz/1dbarcode_unselected_bug
Fixed 1dbarcodes to populate based on settings
This commit is contained in:
commit
58bf036f52
1 changed files with 9 additions and 10 deletions
|
@ -105,16 +105,15 @@ class Label implements View
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($template->getSupport1DBarcode()) {
|
if ($settings->alt_barcode_enabled) {
|
||||||
$barcode1DType = $settings->label2_1d_type;
|
if ($template->getSupport1DBarcode()) {
|
||||||
$barcode1DType = ($barcode1DType == 'default') ?
|
$barcode1DType = $settings->alt_barcode;
|
||||||
(($settings->alt_barcode_enabled) ? $settings->alt_barcode : null) :
|
if ($barcode1DType != 'none') {
|
||||||
$barcode1DType;
|
$assetData->put('barcode1d', (object)[
|
||||||
if ($barcode1DType != 'none') {
|
'type' => $barcode1DType,
|
||||||
$assetData->put('barcode1d', (object)[
|
'content' => $asset->asset_tag,
|
||||||
'type' => $barcode1DType,
|
]);
|
||||||
'content' => $asset->asset_tag,
|
}
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue