From e0203cfa553a17c2bd56517bfe3be96d729b81d9 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 1 Nov 2022 15:21:24 +0000 Subject: [PATCH] Bug 31028: Only show pending concerns if there are some This patch adds logic to catch when pending_biblio_tickets equals zero. --- koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt index a407807816..7ba8cbe10c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -225,7 +225,7 @@ [% END %] - [% IF ( ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %] + [% IF ( ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && pending_biblio_tickets && CAN_user_editcatalogue_edit_catalogue ) %]
Catalog concerns pending: [% pending_biblio_tickets | html %] -- 2.20.1