mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Fixes issue with older, deleted asset tags caching QR codes
This commit is contained in:
parent
5265821bcc
commit
71fd430f8e
|
@ -789,7 +789,7 @@ class AssetsController extends Controller
|
||||||
if ($settings->qr_code == '1') {
|
if ($settings->qr_code == '1') {
|
||||||
$asset = Asset::find($assetId);
|
$asset = Asset::find($assetId);
|
||||||
$size = Helper::barcodeDimensions($settings->barcode_type);
|
$size = Helper::barcodeDimensions($settings->barcode_type);
|
||||||
$qr_file = public_path().'/uploads/barcodes/qr-'.str_slug($asset->asset_tag).'.png';
|
$qr_file = public_path().'/uploads/barcodes/qr-'.str_slug($asset->asset_tag).'-'.str_slug($asset->id).'.png';
|
||||||
|
|
||||||
if (isset($asset->id,$asset->asset_tag)) {
|
if (isset($asset->id,$asset->asset_tag)) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue