Bug 34448: Update the way we handle response in http-client.js
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Mon, 31 Jul 2023 14:57:06 +0000 (14:57 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 1 Sep 2023 14:23:22 +0000 (11:23 -0300)
commit1b1b5cda5b1f12b59ddfeb1ce6ce25ffaf56eb89
tree6918d7da64728e9db6a79a7620bd25f06b1a69ec
parent0312acc211546e9ef469ffb1932e75187e527079
Bug 34448: Update the way we handle response in http-client.js

Test plan:
Before patch:
- Visit a non-existent ID i.e. /cgi-bin/koha/erm/agreements/999
- Visit a char ID i.e. /cgi-bin/koha/erm/agreements/abc

Apply patch:
Repeat above steps.

Run cypress tests

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/vue/fetch/http-client.js