]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 2 Sep 2020 13:40:55 +0000 (15:40 +0200)
commit8366baaad5feaae98979312029e13332001a46b7
treebedbde0e7e837a8dbf83c6ff1e16193d1a4d8947
parent9524c1d76169e213403e36673fe9542c9dd4943a
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: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/V1/Patrons.pm
t/db_dependent/api/v1/patrons.t