From 33e0687d1eeb7535a9d25f9ea8a778e938c4d54e Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 3 Jul 2023 12:02:02 +0200 Subject: [PATCH] import: fix displaying attribute errors two times --- src/templates/default/import.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/default/import.tpl b/src/templates/default/import.tpl index b79ec649..7458b042 100644 --- a/src/templates/default/import.tpl +++ b/src/templates/default/import.tpl @@ -73,7 +73,7 @@ {/foreach} {foreach $error.errors.attrs as $a => $es} - {if !in_array($a,$error.data)} + {if !array_key_exists($a, $error.data)}
  • {$a|escape:"htmlall"} :