Koha/koha-tmpl/opac-tmpl/bootstrap
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
..
css Bug 5685: (RM followup) opac.less and opac.css out of sync 2015-10-23 09:44:21 -03:00
en Bug 15344: Remove unucessary call to GetMemberDetails 2015-12-30 11:53:18 +00:00
images Bug 10309 - New OPAC theme based on Bootstrap 2013-10-14 23:13:05 +00:00
itemtypeimg Bug 10309 - New OPAC theme based on Bootstrap 2013-10-14 23:13:05 +00:00
js BUG 11602: [ENH] Fix localcover display 2015-12-04 16:12:52 +00:00
less Bug 5685: Validation of email address field 2015-07-24 13:47:32 -03:00
lib Bug 13696: Add support for Font Awesome icons in Koha 2015-10-27 09:57:23 -03:00