From 3acbead04930c502b3e406d54b3a513088ddd098 Mon Sep 17 00:00:00 2001 From: Viktor Sarge Date: Mon, 16 Jun 2014 13:09:10 +0100 Subject: [PATCH] Bug 12332: Fix for tab "Purchase suggestions" not lighting up This patch changes the file purchase-suggestions.pl with "suggestionsview => 1" for the template parameter. In circ-menu.inc i changed the condition from "suggestions" to "suggestionsview" since it seemed to conflict with the existing variable suggestions (and in that case only highlighting the tab when there were suggestions). Please note that I fixed the troubles with the tab "Fines" in a separate patch 9245. Test plan: 1) Verify that "Purchase suggestions" does not light up as it should when clicked. 2) Install the patch. 3) Verify that the tab "Purchase suggestions" now actually light up when clicked. Signed-off-by: Christopher Brannon Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi Works as advertised. --- koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 2 +- members/purchase-suggestions.pl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc index 616229397f..7505d06907 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -83,7 +83,7 @@ [% IF EnableBorrowerFiles %] [% IF ( borrower_files ) %]
  • [% ELSE %]
  • [% END %]Files
  • [% END %] - [% IF ( suggestions ) %]
  • [% ELSE %]
  • [% END %]Purchase
    suggestions
  • + [% IF ( suggestionsview ) %]
  • [% ELSE %]
  • [% END %]Purchase
    suggestions
  • [% END %] diff --git a/members/purchase-suggestions.pl b/members/purchase-suggestions.pl index a624b686d0..e19da5bbb7 100755 --- a/members/purchase-suggestions.pl +++ b/members/purchase-suggestions.pl @@ -47,6 +47,7 @@ foreach my $key ( keys %$borrower ) { $template->param( $key => $borrower->{$key} ); } $template->param( + suggestionsview => 1, categoryname => $borrower->{'description'}, branchname => GetBranchName( $borrower->{'branchcode'} ), ); -- 2.20.1