]> 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)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 25 Aug 2020 03:36:27 +0000 (15:36 +1200)
commitccd95fdb45a40f6df0fb752a62faf671ca9ee715
treec3f11729f7148b9b6e5eb95b4b0689e91611d81c
parentd867d1b8ddb7909974016a236bc6e86401649abd
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: Aleisha Amohia <aleishaamohia@hotmail.com>
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Koha/REST/V1/Patrons.pm
t/db_dependent/api/v1/patrons.t