From 23f8e3571640f70f205f73eda5d0b6d0a5a5f10a Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 5 Mar 2024 20:39:56 +0000 Subject: [PATCH] Added route parameter Signed-off-by: snipe --- app/View/Label.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/View/Label.php b/app/View/Label.php index cf69532801..21c839fa11 100644 --- a/app/View/Label.php +++ b/app/View/Label.php @@ -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,