Added route parameter

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-03-05 20:39:56 +00:00
parent 95a6c7058f
commit 23f8e35716

View file

@ -127,7 +127,7 @@ class Label implements View
switch ($settings->label2_2d_target) {
case 'ht_tag': $barcode2DTarget = route('ht/assetTag', $asset->asset_tag); break;
case 'hardware_id':
default: $barcode2DTarget = route('hardware.show', $asset->id); break;
default: $barcode2DTarget = route('hardware.show', ['hardware' => $asset->id]); break;
}
$assetData->put('barcode2d', (object)[
'type' => $barcode2DType,