From 075e7a7116d9eeb8bea48d561733145c7d96ad62 Mon Sep 17 00:00:00 2001
From: helene hickey <hickeyhe@wgc.school.nz>
Date: Wed, 16 Jan 2019 22:36:20 +0000
Subject: [PATCH] Bug 22148: Changed where user is redirected by cancelling
 payment

To test:
1) Create a manual invoice and save
2) Go to Make a payment tab
3) Click 'Pay amount', then cancel
4) Notice you are redirected to the Transactions tab, rather than back to
Make a payment
5) Also try this with Pay selected and write off selected result when
cancelling should be the same
6) Apply patch and try steps 2-6 again
7) Verify that you are now redirected to the 'make a payment tab'
---
 koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt
index e0af674642..a901f6c7a4 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt
@@ -220,7 +220,7 @@
     </fieldset>
     <div class="action">
         <input type="submit" name="submitbutton" value="Confirm" />
-        <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a>
+        <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a>
     </div>
     </form>
 [% END %]
-- 
2.11.0