Bug 7472 Edit button ineffective when paying borrower fee
authorFrédéric Demians <f.demians@tamil.fr>
Thu, 26 Jan 2012 09:39:52 +0000 (10:39 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 3 Feb 2012 13:30:56 +0000 (14:30 +0100)
On payment page, the Edit button doesn't load anymore the current
borrower edit page.

To reproduce the bug:

- Define a borrower category 'foo' with Enrollment fee
- Create a new 'foo' borrower
- Click on Check out tab
- A message is displayed: Fees & Charges: Patron has Outstanding fees &
  charges of xx.00. Checkouts are BLOCKED because fine balance is OVER
  THE LIMIT. Make Payment
- Click on Payment link
- Click on Edit button
- You reach a page for creating a new borrower
  => you should reach the current borrower edition page

- Same issue on paycollect.tt template

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>

koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt

index cf40c77..8b0a545 100644 (file)
@@ -21,7 +21,7 @@ function confirmWriteoffAll() {
    <div id="bd">
        <div id="yui-main">
        <div class="yui-b">
-[% INCLUDE 'members-toolbar.inc' %]
+[% INCLUDE 'members-toolbar.inc' borrowernumber=borrower.borrowernumber %]
 
 <!-- The manual invoice and credit buttons -->
 <div class="toptabs">
index 0682aea..ba18215 100644 (file)
@@ -64,7 +64,7 @@ function moneyFormat(textObj) {
 <div id="bd">
 <div id="yui-main">
 <div class="yui-b">
-[% INCLUDE 'members-toolbar.inc' %]
+[% INCLUDE 'members-toolbar.inc' borrowernumber=borrower.borrowernumber %]
 
 
 <!-- The manual invoice and credit buttons -->