Koha-clms/Koha/Exceptions
Lucas Gass 676d263687
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

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-06-12 11:52:07 -03:00
..
Acquisition Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Checkouts Bug 30275: (follow-up) Drop renewer_id constraint 2022-07-05 09:46:18 -03:00
Item Bug 33021: Show an alert when adding a reserved item to an item bundle 2023-03-27 12:50:05 +02:00
Patron Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Account.pm Bug 33176: Enforce bad values 2023-06-12 11:52:07 -03:00
ArticleRequest.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Auth.pm Bug 31378: Add Auth mojo plugin 2022-11-08 14:30:33 -03:00
Authentication.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Authorization.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
BackgroundJob.pm Bug 30360: Add helper methods to Koha::BackgroundJobs 2022-05-05 16:11:36 +01:00
Checkin.pm Bug 32121: Show an alert when adding a checked out item to an item bundle 2023-03-27 12:50:02 +02:00
Checkout.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
ClubHold.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Config.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
CurbsidePickup.pm Bug 30650: Prevent pickup to be created on holiday 2022-07-29 15:00:51 -03:00
Elasticsearch.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Hold.pm Bug 31086: Throw an exception when a hold is stored with no branchcode 2022-07-22 14:19:17 -03:00
Ill.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Library.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
MarcOverlayRule.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Metadata.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Object.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Password.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Patron.pm Bug 33229: Clear patron reading history when privacy is set to never 2023-04-14 15:39:41 -03:00
Plugin.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
SysPref.pm Bug 30007: Add Koha::Exceptions::SysPref 2022-03-01 22:47:47 -10:00
Token.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
TransferLimit.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Virtualshelf.pm Bug 30057: Move virtualshelf-related exceptions to a separate library 2022-06-06 14:30:37 -03:00
XSLT.pm Bug 12758: (QA follow-up) Enhance POD 2022-11-09 09:58:56 -03:00