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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 14 Sep 2023 17:53:38 +0000 (07:53 -1000)
commit2a0fcd9ddacf7bce25912778746f9994c06cdabe
tree0b5406b8790a3978f4e2ffb0a8f95df09465675b
parent767a004f03863bd93febd2260cb236d505f21ef5
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