]> git.koha-community.org Git - koha.git/commit
Bug 14708: The patron set as the anonymous patron should not be deletable.
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 27 Feb 2019 11:59:08 +0000 (06:59 -0500)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 6 Nov 2020 08:40:25 +0000 (09:40 +0100)
commitc1af56eb54043909f7e32b4597baa4f2d4d3e7dd
tree2d84e733fae233dece36aef2597a5a2d0fabecdd
parent880c9242a976e1b824af2ab5f048b1a0aa7b5496
Bug 14708: The patron set as the anonymous patron should not be deletable.

Right now it's possible to delete the anonymous patron at any time. When this happens the system will break just as if anonymouspatron was unset but patrons still have an "always anonymize" privacy setting.

This issue occurs more frequently than one would expect.

We should make it so that the patron set in AnonymousPatron is not deletable.

Test Plan:
1) Apply this patch
2) Set a patron to by AnonymousPatron
3) Attempt to delete that patron from the members toolbar
4) Note the error message!

Signed-off-by: Devinim <kohadevinim@devinim.com.tr>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
members/deletemem.pl