Bug 22067: Return if no patron passed to can_see_patron_infos
authorNick Clemens <nick@bywatersolutions.com>
Thu, 3 Jan 2019 20:52:15 +0000 (20:52 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 25 Feb 2019 13:26:08 +0000 (13:26 +0000)
commite7201d27af1ca0c83ba66b69b4836c21b4905dda
treea5a561ebd5b05cc469ff4c91d72130505752af9c
parent52ed732c42b5b3527bed458b8ce4be8878ed507d
Bug 22067: Return if no patron passed to can_see_patron_infos

To test:
1 - Find an adult patron
2 - Add a child to their account
3 - Delete the parent from the db
4 - Attempt to edit the child record
5 - Apply patch
6 - Repeat
7 - Note you can edit the child account
8 - Note guarantor id is not a link

Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
No blocker for me, but we are a bit hiding that guarantorid probably should
be a foreign key cleared to NULL at deletion time.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 5324268e099ead7a6864d16bae0f051444a1d34e)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Patron.pm