From d377ace0a165e4aa538178a09b802b429f240aeb Mon Sep 17 00:00:00 2001 From: cconard96 Date: Tue, 7 Jan 2025 20:11:08 -0500 Subject: [PATCH] do not show qr code for new assets --- templates/generic_show_form.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/generic_show_form.html.twig b/templates/generic_show_form.html.twig index fc0dbda913e..b9512384f74 100644 --- a/templates/generic_show_form.html.twig +++ b/templates/generic_show_form.html.twig @@ -553,7 +553,7 @@ {% endif %} {% endfor %} - {% if item_type in config("asset_types") %} + {% if not item.isNewItem() and item_type in config("asset_types") %} {% set barcode %} {{ call('BarcodeManager::renderQRCode', [ item