Bug 22148

Summary: Cancelling some payments/writeoffs redirects to unexpected page
Product: Koha Reporter: Aleisha Amohia <aleisha>
Component: Fines and feesAssignee: helene <hickeyhe>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: david, hickeyhe, josef.moravec, martin.renvoize, nick
Version: unspecifiedKeywords: Academy
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 22148: Changed where user is redirected by cancelling payment
Bug 22148: Changed where user is redirected by cancelling payment
Bug 22148: Changed where user is redirected by cancelling payment
Bug 22148: Changed where user is redirected by cancelling payment

Description Aleisha Amohia 2019-01-16 21:47:52 UTC
Go to a patron's account, then Accounting tab
Create a manual invoice and save
Go to Make a payment tab
Click 'Pay amount', then cancel
Notice you are redirected to the Transactions tab, rather than back to Make a payment
The behaviour is the same for Pay selected and Writeoff selected.
Comment 1 helene 2019-01-16 22:41:27 UTC
Created attachment 84102 [details] [review]
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'
Comment 2 ByWater Sandboxes 2019-01-17 08:20:10 UTC
Created attachment 84132 [details] [review]
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'

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 José-Mario Monteiro-Santos 2019-01-25 21:35:21 UTC
Created attachment 84439 [details] [review]
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'

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jose-Mario Monteiro-Santos <jose-mario.monteiro-santos@inLibro.com>
Comment 4 Katrin Fischer 2019-01-26 13:10:09 UTC
Created attachment 84446 [details] [review]
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'

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jose-Mario Monteiro-Santos <jose-mario.monteiro-santos@inLibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 5 Nick Clemens 2019-01-31 13:38:42 UTC
Awesome work all!

Pushed to master for 19.05
Comment 6 Martin Renvoize 2019-02-01 15:38:14 UTC
Enhancement, will not be backported to 18.11.x series.