Koha/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing
Jonathan Druart ac541e0fa1 Bug 15344: Remove unucessary call to GetMemberDetails
This subroutine does a lot a processing and should only be called when
necessary.
In the get_template_and_user subroutine (so called from any pages of
Koha), it is call to pass the branchcode, title, firstname, surname and
borrowernumber values for the logged in user.
This subroutine calls GetMemberAccountRecords which retrieve the items
infos for all accountlines entries of the logged in user.
On members/members.pl, let's say you have 74 entries in the accountlines
tables, the page will execute 115 SELECT instead of 35 if you don't have any
accountlines entries.
With this patch, the number of SELECT is always 31.

To test this patch you should have technical skills to know what to do.

Note that USER_INFO was an array of... 1 element. Now it's a hashref.

Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2015-12-30 11:53:18 +00:00
..
value_builder Bug 14201: We can do without plugin marc21_leader_computerfile 2015-09-28 12:19:52 -03:00
addbiblio.tt Bug 15344: Remove unucessary call to GetMemberDetails 2015-12-30 11:53:18 +00:00
addbooks.tt Bug 15344: Remove unucessary call to GetMemberDetails 2015-12-30 11:53:18 +00:00
additem.tt Bug 7369: Duplicate item and add dropdown buttons for item actions 2015-11-09 14:56:09 -03:00
editor.tt Bug 11559: (QA followup) replace font choices, fix macro editor 2015-10-27 12:25:01 -03:00
linkitem.tt
merge.tt Bug 15314: Use Bootstrap modal for cataloging merge MARC preview 2015-12-30 03:38:15 +00:00
moveitem.tt
z3950_auth_search.tt
z3950_search.tt Bug 15313 - Use Bootstrap modal for z39.50 search MARC and Card preview 2015-12-30 03:31:28 +00:00