]> git.koha-community.org Git - koha.git/commit
Bug 20886: Do not cast undef to 0 (TO_JSON)
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 6 Jun 2018 14:12:24 +0000 (11:12 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 8 Jun 2018 13:48:12 +0000 (09:48 -0400)
commit2529a218eef278278bc6bfbfe28267b4acbf9c17
tree21e0d318d8bc235acdd357f404658403a938d487
parentd86ff0f5db72a1291958458e07ac7d9868ac4ac0
Bug 20886: Do not cast undef to 0 (TO_JSON)

We should not cast undefined values to 0.

Signed-off-by: Andrew Isherwood <andrew.isherwood@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This was a bug I introduced. I think the fix is right, and if something
gets broken for this, it means it was making the wrong assumptions on
the data.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Object.pm
t/db_dependent/Koha/Object.t