mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Fix for broken QR code on deleted assets
This commit is contained in:
parent
99ad096a8a
commit
a1f5e11517
|
@ -637,7 +637,7 @@ class AssetsController extends Controller
|
|||
$settings = Setting::getSettings();
|
||||
|
||||
if ($settings->qr_code == '1') {
|
||||
$asset = Asset::find($assetId);
|
||||
$asset = Asset::find($assetId)->withTrashed();
|
||||
$size = Helper::barcodeDimensions($settings->barcode_type);
|
||||
$qr_file = public_path().'/uploads/barcodes/qr-'.str_slug($asset->asset_tag).'-'.str_slug($asset->id).'.png';
|
||||
|
||||
|
|
Loading…
Reference in a new issue