From fea21b16abb16b2d690f500c733a8a21211ab205 Mon Sep 17 00:00:00 2001 From: Viktor Sarge Date: Mon, 16 Jun 2014 12:21:06 +0100 Subject: [PATCH] 9245 Fixes visual bux with fines tab not highlighting This patch makes shure that mancredit.pl, maninvoice.pl and pay.pl passes the value "finesview=1" that makes the tab active. Test plan: 1) Go to a library user and the fines tab. Note that the "Fines" tab loses it's highlight when you click "Pay fines", "Create manual invoice" and "Create manual credit". 2) Install the patch. 3) Redo the first step and make shure that the left menu tab "Fines" is now highlighted all the time. Signed-off-by: Nicole C. Engard Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi Works as advertised, no regression found on the rest of the tabs. --- members/mancredit.pl | 1 + members/maninvoice.pl | 1 + members/pay.pl | 1 + 3 files changed, 3 insertions(+) diff --git a/members/mancredit.pl b/members/mancredit.pl index 0ba52f350a..ccb739e043 100755 --- a/members/mancredit.pl +++ b/members/mancredit.pl @@ -89,6 +89,7 @@ if (C4::Context->preference('ExtendedPatronAttributes')) { } $template->param( + finesview => 1, borrowernumber => $borrowernumber, firstname => $data->{'firstname'}, surname => $data->{'surname'}, diff --git a/members/maninvoice.pl b/members/maninvoice.pl index 4bf294a770..cfd3878b97 100755 --- a/members/maninvoice.pl +++ b/members/maninvoice.pl @@ -116,6 +116,7 @@ if (C4::Context->preference('ExtendedPatronAttributes')) { ); } $template->param( + finesview => 1, borrowernumber => $borrowernumber, firstname => $data->{'firstname'}, surname => $data->{'surname'}, diff --git a/members/pay.pl b/members/pay.pl index 3e36073d55..14607b0160 100755 --- a/members/pay.pl +++ b/members/pay.pl @@ -104,6 +104,7 @@ for (@names) { } $template->param( + finesview => 1, activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''), RoutingSerials => C4::Context->preference('RoutingSerials'), ); -- 2.39.5