[koha-commits] main Koha release repository branch 17.05.x updated. v17.05.04-125-ge23822b

Git repo owner gitmaster at git.koha-community.org
Tue Oct 17 10:17:40 CEST 2017


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, 17.05.x has been updated
       via  e23822b869ea66f63ce6c6027e418c79e3c7ba04 (commit)
      from  fe386c172496159198b34383c3080185de7ae0af (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 e23822b869ea66f63ce6c6027e418c79e3c7ba04
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date:   Wed Sep 27 13:44:00 2017 -0300

    Bug 19366: Do not block patron's detail update if EmailMustBeUnique
    
    If the pref PatronSelfRegistrationEmailMustBeUnique is set ("consider"),
    a patron is not allowed to register with an existing email address.
    The existing code is wrong and reject a patron that is updating their
    personal details with "This email address already exists in our
    database.", even if the patron did not modify their email address.
    
    This is caused by the query we made, we must search for patron with this
    email address but who is not the current patron.
    
    Test plan:
    - Set PatronSelfRegistrationEmailMustBeUnique to "consider"
    - Register a new patron with an existing email address
    => you should not be allowed
    - Use a non-existent email address
    => You should be allowed
    - Edit your patron details
    - Modify some infos
    => Should pass
    - Modify your email address with an existing one
    => You should not be allowed to do that
    
    Followed test plan, patches worked as described
    Signed-off-by: Alex Buckley <alexbuckley at catalyst.net.nz>
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    
    Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
    (cherry picked from commit ae02cf97e469a17d3bdc9d5c7db702960fd620c8)
    Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>

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

Summary of changes:
 opac/opac-memberentry.pl |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list