[Koha-bugs] [Bug 23229] "Get all requests" API call fired when loading any ILL page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 28 11:28:06 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23229

--- Comment #1 from Andrew Isherwood <andrew.isherwood at ptfs-europe.com> ---
Created attachment 91062
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91062&action=edit
Bug 23229: Only load ILL table JS when needed

This patch prevents the JS associated with the ILL table from loading
unless we're actually displaying the table. This has the knock on effect
of not causing the "get all ILL requests" API request to fire when
loading any ILL page.

Test plan:

- Go to "ILL requests" page
- TEST: Observe that the table loads all ILL requests
- Go to the "New ILL request" page for any installed backend
- TEST: Check the browser dev tools "Network" panel, observe that the
/api/v1/illrequests?embed=metadata,patron,capabilities,library,status_alias,comments,requested_partners
request is not made.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list