[Koha-bugs] [Bug 33176] Improve enforcing of RequirePaymentType

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 7 20:43:55 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33176

--- Comment #12 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 152131
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=152131&action=edit
Bug 33176: Enforce bad values

1. Turn on RequirePaymentType
2. Create a manual invocie on a patron account
3. Go to pay it, 'Payment type:' is marked as required.
4. In the inscept the select input ( #payment_type ) with your browser's dev
tools. Removed the required attribute.
5. You are able to make the payment without a payment type.
6. Apply patch and restart_all
7. Try 4-5 again. This time you should get a 500 error and the payment should
not go through.
8. Try a paymnet again this time manipulate the DOM and change the value of
'CASH' to something else like 'SOMETHINGELSE'.
9. Try to submit the payment and again you will get a 500 error. The payment
should not go through.
10. Turn RequirePaymentType off. Try a payment with a payment type, you shoud
be successful.
11. Make sure tests will pass

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list