mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
Merge pull request #14372 from snipe/bug/sc-24158
Added route parameter
This commit is contained in:
commit
a85e2f7aad
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue