]> 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)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Tue, 25 Aug 2020 03:49:41 +0000 (05:49 +0200)
commitf101a0b020977e990f1b24384011b15724ae4452
tree460050624d68af30696d70a87050592c7eb3e2d0
parent62a481449ab798183a4e26a208946bcbc5912c31
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: Aleisha Amohia <aleishaamohia@hotmail.com>
(cherry picked from commit cc1e2ae3b73c7bc45f4cc2a05a3836e295453e0b)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Koha/REST/V1/Patrons.pm