Koha-clms/Koha/Patron
Tomas Cohen Arazi d816bad357 Bug 27858: Make Koha::Patron::Attribute->store raise an exception on invalid type/code
This patch adds type validation to the ->store method. And exception
should be thrown if the type is invalid. Things currently explode in
such situations, so this doesn't change the behavior (just adding more
informative failure information).

To test:
1. Apply the previous patches
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Patron/Attribute.t
=> FAIL: No exception is thrown on the bad case, weird error
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass! Exception thrown!
5. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-04-09 15:43:26 +02:00
..
Attribute Bug 8326: Make repeatable and unique_id modifiable when editing patron attribute type 2021-02-15 11:48:55 +01:00
Password Bug 27860: Fix password recovery 2021-03-16 12:04:05 +01:00
Attribute.pm Bug 27858: Make Koha::Patron::Attribute->store raise an exception on invalid type/code 2021-04-09 15:43:26 +02:00
Attributes.pm Bug 20443: Fix merge_with behavior 2020-03-23 13:49:24 +00:00
Categories.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Category.pm Bug 23816: trivial code simplification 2020-09-09 15:39:52 +02:00
Consent.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Consents.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Debarments.pm Bug 26594: (QA follow-up) Make _UpdateBorrowerDebarmentFlags a public method 2020-11-10 15:00:14 +01:00
Discharge.pm Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
Files.pm
…
HouseboundProfile.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
HouseboundProfiles.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
HouseboundRole.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
HouseboundRoles.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
HouseboundVisit.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
HouseboundVisits.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Image.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Images.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Message.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Messages.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Modification.pm Bug 20443: Fix patron modification approval 2020-03-23 13:49:23 +00:00
Modifications.pm Bug 20443: Fix patron modification approval 2020-03-23 13:49:23 +00:00
Relationship.pm Bug 25946: borrowerRelationship can be empty 2021-04-01 17:06:38 +02:00
Relationships.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00