Summary: | CanItemBeReserved fetches biblio for agerestriction check if feature not enabled | ||
---|---|---|---|
Product: | Koha | Reporter: | Nick Clemens <nick> |
Component: | Hold requests | Assignee: | Nick Clemens <nick> |
Status: | CLOSED FIXED | QA Contact: | Marcel de Rooy <m.de.rooy> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | fridolin.somers, gmcharlt, kyle, m.de.rooy |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
22.05.00,21.11.05
|
|
Bug Depends on: | |||
Bug Blocks: | 7923 | ||
Attachments: |
Bug 29517: Check if agerestriction field is mapped before fetching biblio
Bug 29517: Check if agerestriction field is mapped before fetching biblio Bug 29517: Check if agerestriction field is mapped before fetching biblio |
Description
Nick Clemens
2021-11-18 12:03:30 UTC
Created attachment 127788 [details] [review] Bug 29517: Check if agerestriction field is mapped before fetching biblio This patch simply adds a check of cached values to see if agerestriction enabled before fetching the biblio object To test: 1 - prove -v t/db_dependent/Holds.t Created attachment 131541 [details] [review] Bug 29517: Check if agerestriction field is mapped before fetching biblio This patch simply adds a check of cached values to see if agerestriction enabled before fetching the biblio object To test: 1 - prove -v t/db_dependent/Holds.t Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> Nice performance catch Created attachment 132218 [details] [review] Bug 29517: Check if agerestriction field is mapped before fetching biblio This patch simply adds a check of cached values to see if agerestriction enabled before fetching the biblio object To test: 1 - prove -v t/db_dependent/Holds.t Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Pushed to master for 22.05, thanks to everybody involved 🦄 Pushed to 21.11.x for 21.11.05 |