[koha-commits] main Koha release repository branch master updated. v16.11.00-144-gaf171f9

Git repo owner gitmaster at git.koha-community.org
Fri Dec 30 12:55:16 CET 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, master has been updated
       via  af171f9b21da8fa1c22754caa541e826ffeee529 (commit)
      from  28d81cb7bbde241cafb7c1cd05860251840d7e04 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit af171f9b21da8fa1c22754caa541e826ffeee529
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date:   Wed Dec 28 13:14:06 2016 +0100

    Bug 17820: use ->find instead of search->next
    
    From C4::Auth:
      my $patron = Koha::Patrons->search({ userid => $userid })->next;
    
    This should be replaced with
      my $patron = Koha::Patrons->find({ userid => $userid });
    
    userid is a unique key
    
    Caught with NYTProf:
     # spent 78.9ms making 1 call to Koha::Objects::next
    
    Test plan:
    Login at the intranet
    Reload the page
    => You must still be logged in
    
    Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
    Tested by enabling TrackLastPatronActivity and logging in again.
    Verified lastseen column in borrowers.
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-----------------------------------------------------------------------

Summary of changes:
 C4/Auth.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list