From d2af19dd31d0846ee0c852304b01f1d060e0ba48 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Séverine QUEUNE Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- 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.39.5