]> git.koha-community.org Git - koha.git/commit
Bug 11853: Allow to clear the date of birth at the OPAC
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 8 May 2019 21:37:50 +0000 (16:37 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 24 May 2019 13:45:07 +0000 (14:45 +0100)
commitc6ca2dfcd344796ca01185776118b73820ca79a9
tree614789374edec7b82e60b60d776a9188f2d2dc76
parentb95682f73549cd9ddda73c61a54a4b45b0443cbe
Bug 11853: Allow to clear the date of birth at the OPAC

A patron is not able to clear their date of birth.

When cleared tt is set to NULL in DB which means, for the patron's
modifications feature, that nothing has been changed.

Test plan:
0/ Do not apply the patch
1/ Edit your personal details at the OPAC
2/ Add a date of birth
3/ On the staff interface, approve the modification request
=> OK it is updated
4/ Edit your personal details and clear the date of birth
5/ On the staff interface
=> KO the table display is wrong, nothing is marked has changed
6/ Approve the modification requiest
=> KO it has not been cleared
7/ Apply the patch and repeat 1 to 6 and confirm that the behaviors are
now correct.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 6692800794cbf403e8be8c8062608b60148c0d56)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Patron/Modification.pm
Koha/Patron/Modifications.pm