From 8052ee34a99a0bf8ecb031facd9389807fd9ee4b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 6 Jul 2022 11:30:13 +0200 Subject: [PATCH] Bug 23991: Don't display empty div if no suggestions exist If no suggestions exist we should not display an empty tab div Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index f2a10b94e2..1e266d5855 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -684,7 +684,7 @@ [% END # /FOR m %] - [% UNLESS ( notabs ) %] + [% IF suggestions.size && !notabs %]
- [% END # /UNLESS notabs %] + [% END # IF suggestions.size && !notabs %] [% FOREACH suggestion IN suggestions %] [% UNLESS ( notabs ) %] @@ -975,7 +975,7 @@
[% END # /FOREACH suggestion %] - [% UNLESS ( notabs ) %] + [% IF suggestions.size && !notabs %]
[% END # /UNLESS notabs %] -- 2.39.5