https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43516
--- Comment #19 from Paul Derscheid <[email protected]> --- I kept suppressDefaultErrorDialog because the booking modal reports API errors itself, in the form's alert via formatApiError, and only needs the client to skip its own report. return_response can't do that. In the Vue client the !ok check throws before return_response is looked at, and delete()/count() rely on that to report failures. Network errors, which the modal reports as "Could not reach the server", never produce a Response. A raw Response also loses the status and server message that formatApiError uses for its session-expired, not-authorised and "An error occurred: ..." messages. The modal could then only ever say "something failed", which was very confusing for both me and testers. The config object is needed anyway to carry the AbortSignal for stale availability requests, so the flag costs nothing extra. It also keeps the planned OPAC modal from showing the same error a second time in #messages behind the modal. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
