From f92aab200e25a5cd1a13d3fbdf2f53817a9295aa 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 --- .../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 f2a10b94e27..1e266d58555 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.25.1