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

Nick Clemens <n...@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 <n...@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.heiska...@hypernova.fi>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to