From 463661d2f82aaeacabcd650470f20986b8ba5b94 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Sat, 21 Oct 2023 10:57:16 +0200 Subject: [PATCH] simplification delete_category --- categories/delete_category.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/categories/delete_category.html b/categories/delete_category.html index a2283fc..701a2df 100644 --- a/categories/delete_category.html +++ b/categories/delete_category.html @@ -8,9 +8,9 @@ {{#form on="delete"}} {{* lister les matériels de cette catégorie et leurs mouvements *}} - {{#load type="equipment" where="$$.category = :key" :key=$_GET.id assign="equipment"}} + {{#load type="equipment" category=$_GET.id assign="equipment"}} - {{* supprimer le matériel courant et les mouvements associés *}} + {{* supprimer le matériel courant et les mouvements associés *}} {{:delete where="key = :key OR $$.equipment = :key" :key=$equipment.key}} {{/load}}