Koha-clms/Koha/Patron
Tomas Cohen Arazi 332895b781 Bug 17767: Make Koha::Patron::Modification handle extended attributes
This patch makes Koha::Patron::Modification aware of the new extended_attributes
column, which is expected to contain valid JSON data.

The ->store method is modified so it validates the field value (i.e. the content
is decoded using the JSON library) and raises a convenient exception in case of
failure.

This behaviour change is covered by the provided unit tests.

To test:
- Apply the patchset
- Run:
  $ prove t/db_dependent/Koha/Patron/Modifications.t
=> SUCCESS: Tests make sense, and they pass
- Sign off :-D

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-12-28 13:53:02 +00:00
..
Password Bug 16011: $VERSION - Remove comments 2016-03-24 17:20:29 +00:00
Categories.pm Bug 15407: Koha::Patron::Categories - replace GetborCatFromCatType 2016-09-08 13:29:22 +00:00
Category.pm Bug 14637: Fix add patron category under MySQL 5.7 2016-12-28 13:31:20 +00:00
Debarments.pm Bug 16849: Move IsDebarred to Koha::Patron->is_debarred 2016-07-15 18:08:14 +00:00
Discharge.pm Bug 16849: Move IsDebarred to Koha::Patron->is_debarred 2016-07-15 18:08:14 +00:00
Files.pm Bug 16011: $VERSION - Remove empty BEGIN block 2016-03-24 17:20:41 +00:00
HouseboundProfile.pm Bug 5670: Housebound Readers Module 2016-10-21 18:17:57 +00:00
HouseboundProfiles.pm Bug 5670: Housebound Readers Module 2016-10-21 18:17:57 +00:00
HouseboundRole.pm Bug 5670: [QA Followup] Create HouseboundRole objects. 2016-10-21 18:18:05 +00:00
HouseboundRoles.pm Bug 5670: [QA Followup] Create HouseboundRole objects. 2016-10-21 18:18:05 +00:00
HouseboundVisit.pm Bug 5670: [Followup] Return Koha::Patron objects. 2016-10-21 18:17:58 +00:00
HouseboundVisits.pm Bug 5670: Housebound Readers Module 2016-10-21 18:17:57 +00:00
Image.pm Bug 15635: Change method type to _type for bug 15446 2016-03-04 12:54:20 +00:00
Images.pm Bug 15635: Change method type to _type for bug 15446 2016-03-04 12:54:20 +00:00
Message.pm Bug 17558: Fix adding manager id to patron messages in store method 2016-11-12 02:33:14 +00:00
Messages.pm Bug 15632 [QA Followup] - Change method type to _type for bug 15446 2016-03-03 21:22:16 +00:00
Modification.pm Bug 17767: Make Koha::Patron::Modification handle extended attributes 2016-12-28 13:53:02 +00:00
Modifications.pm Bug 17767: Make Koha::Patron::Modification handle extended attributes 2016-12-28 13:53:02 +00:00