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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 11 Jun 2018 09:07:30 +0000 (10:07 +0100)
commit9298388011caa924b0dbbc7222b73d96e2255da4
tree3b9124c0684ca88f5b8bf985b77a76665675ecc7
parente4d94a2393588a6dc512b76e9ba141c17649b920
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>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Object.pm
t/db_dependent/Koha/Object.t