Koha-clms/Koha/Patron
Tomas Cohen Arazi 35aefaa11c Bug 27833: Make K::P::Attribute add the object to the exception
This patch makes the 'check_unique_id' and '_check_repeatable' methods
pass the 'attribute' parameter when throwing an exception. This way we
can provid emore meaningfull error messages.

To test:
1. Apply the previous patches
2. Run
   $ kshell
  k$ prove t/db_dependent/Koha/Patron/Attributes.t
=> FAIL: The exceptions are not passed the attribute!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

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 27833: Make K::P::Attribute add the object to the exception 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