From dfb4cbe5188ee3650f2a97b840dba935e24bf84b 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. --- 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 0ba52f3..ccb739e 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 4bf294a..cfd3878 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 3e36073..14607b0 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'), ); -- 1.7.10.4