Koha-clms/Koha/Patron
Jonathan Druart 047c31b424 Bug 14637: Fix add patron category under MySQL 5.7
If no dateofbirthrequired or upperagelimit is set on the interface, the
->store method will receive an empty string defined for these values.
For INT field, we must explicitely set these empty value to undef
instead to avoid MySQL 5.7 (and strict mode) to raise:
  DBD::mysql::st execute failed: Incorrect integer value: ' for column
'dateofbirthrequired''

Test plan:
Using MySQL 5.7 (and/or sql_mode=STRICT_TRANS_TABLES)
Create a patron category without specifying upperagelimit or
dateofbirthrequired

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
2017-01-25 12:43:16 +13:00
..
Password Bug 16011: $VERSION - Remove comments 2016-03-24 17:20:29 +00:00
Categories.pm Bug 15446: Rename Koha::Object[s]->type with _type 2016-02-12 12:35:57 -07:00
Category.pm Bug 14637: Fix add patron category under MySQL 5.7 2017-01-25 12:43:16 +13:00
Debarments.pm Bug 15548: Move new patron related code to Patron* 2016-03-03 14:38:26 -07:00
Discharge.pm Bug 15548: Move new patron related code to Patron* 2016-03-03 14:38:26 -07:00
Files.pm Bug 16011: $VERSION - Remove empty BEGIN block 2016-03-24 17:20:41 +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 15632 [QA Followup] - Change method type to _type for bug 15446 2016-03-03 21:22:16 +00:00
Messages.pm Bug 15632 [QA Followup] - Change method type to _type for bug 15446 2016-03-03 21:22:16 +00:00
Modifications.pm Bug 15548: Move new patron related code to Patron* 2016-03-03 14:38:26 -07:00