]> git.koha-community.org Git - koha.git/commit
Bug 23634: (QA follow-up) Our PUT is really a PATCH
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 13 Jul 2020 15:25:13 +0000 (12:25 -0300)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 31 Aug 2020 20:01:53 +0000 (20:01 +0000)
commit86d74d4769cbcb41fa27a62ed16fe886410be90d
tree3fd936beb5f5d5b71857df6567c6863d09468d07
parent414340822c418827e4de59ec6dbbd002646bf46b
Bug 23634: (QA follow-up) Our PUT is really a PATCH

This patch makes the controller not expect that there will always be all
the email fields. So it now checks if an email field was passed, and
changed, and renders the error if that stands.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/patrons.t
=> FAIL: Tests written by Nick highlight a problem
2. Apply this patch
3. Repeat 1
=> SUCCESS: Problems solved
4. Sign off :-D

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 f58ae3f0ead21e77da038f37fa098593e50615d5)
Koha/REST/V1/Patrons.pm