[Koha-bugs] [Bug 29043] Items are processed but not displayed on request.pl before a patron is selected

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Dec 13 17:07:38 CET 2021


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

Nick Clemens <nick at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #128421|0                           |1
        is obsolete|                            |
 Attachment #128422|0                           |1
        is obsolete|                            |
 Attachment #128423|0                           |1
        is obsolete|                            |

--- Comment #25 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 128474
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=128474&action=edit
Bug 29043: Don't load items unless a p[atron has been chosen on request.pl

This patch moves the code that we sh9ould run if there is no patron to the head
of
the biblio loop. If we have no patron we execute this and go to the next loop.

A few variables that were being passed to the template in the loop are moved
outside - no
reason to overwrite each loop

To test:
 1 - Browse to a bib in the staff client
 2 - Click on the holds tab
 3 - Note loading time
 4 - Add 500 items to bib
 5 - Note loading time - it takes longer
 6 - Note items are not displayed
 7 - Apply patch
 8 - Reload page - is much faster
 9 - Find/choose a patron
10 - Confirm items are loaded correctly

Signed-off-by: Samu Heiskanen <samu.heiskanen at hypernova.fi>

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


More information about the Koha-bugs mailing list