Bug 32904: Check if responseJSON is defined for dataTable error
authorAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 7 Feb 2023 22:00:18 +0000 (22:00 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 27 Feb 2023 14:40:51 +0000 (11:40 -0300)
commitbcc1c6c3fd19fe25d00b0fae4862a6b90b215ca5
tree18e2463a809eb7b3fa6e479c9125c1d5af185f0f
parenta2314dc0ce6d0202451162cf11708ac73d4ba95e
Bug 32904: Check if responseJSON is defined for dataTable error

This patch checks if responseJSON is defined before checking if
responseJSON.errors is defined.

Sponsored-by: Education Services Australia SCIS
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/datatables.js