Correction bug

This commit is contained in:
Jean-Christophe Engel 2023-11-30 18:37:09 +01:00
parent 0828cb8cb9
commit 15020bc440
1 changed files with 6 additions and 3 deletions

View File

@ -9,9 +9,12 @@
WHERE json_extract(cat.document, '$.type') = 'category' WHERE json_extract(cat.document, '$.type') = 'category'
}} }}
{{:assign var="categories." value=$key}} {{:assign var="categories." value=$key}}
{{:include file="./inventaire.html" print_cat_name=true}}
{{else}}
<p class="block alert">Il n'y a aucune catégorie : vous devez en ajouter.</p>
{{/select}} {{/select}}
{{if $categories|count == 0}}
<p class="block alert">Il n'y a aucune catégorie : vous devez en ajouter.</p>
{{else}}
{{:include file="./inventaire.html" print_cat_name=true}}
{{/if}}
{{:admin_footer}} {{:admin_footer}}