[Koha-bugs] [Bug 23893] Add ->new_from_api and ->set_from_api methods to Koha::Object

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 15 13:55:37 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23893

--- Comment #49 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 97391
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97391&action=edit
Bug 23893: Special care for booleans

This patch acknowledges the fact that in D8 the Mojo::JSON->true and
Mojo::JSON->false values don't translate into integers when passed to
DBIC. It works correctly on D9 onwards, but we haven't formally
deprecated Jessie. This is adding back this translation, in the right
place now that all mappings code has been integrated into
Koha::Object(s) directly.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Object.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list