From c6732515837f3172bc2ec5797b286ffdf504f662 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 27 Oct 2020 13:50:12 +0000 Subject: [PATCH] Bug 26833: Logged in library doesn't show with suggestions count This patch corrects the template variables used by the suggestions counts shown on the staff interface home page and the acquisitions home page. They should use [% Branches.GetLoggedInBranchname %] To test you should have some suggestions from multiple libraries. - Log in to the staff interface. - On the home page you should see "Suggestions pending approval," followed by the name of your logged-in library and the count of suggestions for your library. - Go to the acquisitions page. - In the "Pending suggestions" section you should see the same information: Your logged-in library name, suggestion count, and the count of suggestions at all libraries. --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt index 2546eb6b50..0990427fca 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt @@ -57,7 +57,7 @@

Manage suggestions: - [% LoginBranchname | html %]: [% suggestions_count | html %] + [% Branches.GetLoggedInBranchname | html %]: [% suggestions_count | html %] [% IF (all_pendingsuggestions > 0) %] / 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 a03757e612..373c312dd5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -158,7 +158,7 @@ Suggestions pending approval: - [% LoginBranchname | html %]: [% pendingsuggestions | html %] + [% Branches.GetLoggedInBranchname | html %]: [% pendingsuggestions | html %] [% IF (all_pendingsuggestions > 0) %] / -- 2.11.0