]> git.koha-community.org Git - koha.git/commit
Bug 23634: (QA follow-up) Catch all email cases in API
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 10 Jul 2020 08:38:31 +0000 (09:38 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 31 Aug 2020 20:01:22 +0000 (20:01 +0000)
commit98a287c482f4c828c4741350a4f28039ea28d9ae
tree3834c16a7bc6a23745f15f064272a3b7d7cf086f
parent3ca75f56ffcf7d162a49f4783f8b37457a2a3ade
Bug 23634: (QA follow-up) Catch all email cases in API

The API was only catching the primary email change case, but we need to
catch email, emailpro and B_email.

We were also not accounting for any of the emails (on PUT or from the
DB) being undefined.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 31e362484bba5a42f218027cee0b15a714eccb8c)
Koha/REST/V1/Patrons.pm
t/db_dependent/api/v1/patrons.t