]> 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)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 25 Aug 2020 03:36:33 +0000 (15:36 +1200)
commitcd8ecbfed0fefedf91372d0f708e5b59620ca4b7
treef0caad593ed37fca6e047c47721a9745ba96e51d
parenta6d50045690c15f5196b2d6ad5739c030272893b
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>
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Koha/REST/V1/Patrons.pm