Merge pull request #14372 from snipe/bug/sc-24158

Added route parameter
This commit is contained in:
snipe 2024-03-06 19:45:33 +00:00 committed by GitHub
commit a85e2f7aad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,7 +127,7 @@ class Label implements View
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':
default: $barcode2DTarget = route('hardware.show', $asset->id); break; default: $barcode2DTarget = route('hardware.show', ['hardware' => $asset->id]); break;
} }
$assetData->put('barcode2d', (object)[ $assetData->put('barcode2d', (object)[
'type' => $barcode2DType, 'type' => $barcode2DType,