Bug 31087: Prevent stringification of null in return claims
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 27 Jun 2022 16:20:55 +0000 (17:20 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 9 Aug 2022 21:05:38 +0000 (21:05 +0000)
commitf055a4ae654fe3fde66bd0d316fdbe98daba8f36
tree241661fcfbaaddac70b8f73bd2a2dd9ff1d6c978
parent484add49def5b314606f612800b61038e85e2725
Bug 31087: Prevent stringification of null in return claims

The return claims table was stringifying 'null'. This patch updates the
code to check for definition so we don't stringify incorrectly

Note: This patch was split out from a follow-up on bug 28854 as we felt
it should be treated separately for backportability.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 41ce80eb12e738a55c697f51ecfb32a932a38959)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/js/checkouts.js