Koha/installer/data/mysql
Jonathan Druart 94315f663b Bug 9942: Make Koha fails if privacy is not respected
If a patron has requested anonymity on returning items and the system is
not correctly configured (AnonymousPatron no set or set to an inexistent
patron), the application should take it into account and not fail
quietly.

This patch is quite radical: the script will die loudly if the privacy
is not respected.

To be care of the bad "Software error", some checks are done in the
updatedatabase to be sure the admin will be warned is something is wrong
in the configuration.

Test plan:
1/ Test the updatedatabase entry:
a. Turn on OPACPrivacy and set AnonymousPatron to an existing patron
=> You will get a warning
b. Turn on OPACPrivacy and set AnonymousPatron to 0 or ''
=> You will get a warning
c. Turn on OPACPrivacy and set the privacy to 2 (Never) for at least 1 patron
Turn off OPACPrivacy
=> You will get a warning
d. In all other cases you will get no error

2/ Test the interface
a. Turn on OPACPrivacy and set the privacy to 2 (Never) for a patron
b. Now you can turn off OPACPrivacy or keep it on, behavior should be
the same
c. check an item out the patron
d. Check the item in using the check out table
=> fail
e. Check the item in using the Check in tab
=> fail (not gracefully).

Note that the software error could appear on other pages too.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>

Updatedatabase works as described
On staff, if don't have correct settings for anonymity it's
impossible to check-in (with OPACPrivacy on)
No errors

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
2015-07-07 14:52:32 -03:00
..
atomicupdate Bug 14252: DBRev 3.21.00.011 2015-06-24 10:34:51 -03:00
de-DE Bug 13014: (follow-up) Notify budget owner on new suggestion - sample notices 2015-06-24 11:49:07 -03:00
en Bug 13014: Notify budget owner on new suggestion - sample notices 2015-06-24 11:41:36 -03:00
es-ES Bug 13014: (follow-up) Notify budget owner on new suggestion - sample notices 2015-06-24 11:49:07 -03:00
fr-FR Bug 13014: (follow-up) Notify budget owner on new suggestion - sample notices 2015-06-24 11:49:07 -03:00
it-IT Bug 13014: (follow-up) Notify budget owner on new suggestion - sample notices 2015-06-24 11:49:07 -03:00
mandatory Bug 14285: Bengali locale needs to be re-defined 2015-06-01 15:22:27 -03:00
nb-NO Bug 13014: (follow-up) Notify budget owner on new suggestion - sample notices 2015-06-24 11:49:07 -03:00
pl-PL Bug 13014: (follow-up) Notify budget owner on new suggestion - sample notices 2015-06-24 11:49:07 -03:00
ru-RU Bug 13014: (follow-up 2) Notify budget owner on new suggestion - sample notices 2015-06-24 11:49:12 -03:00
uk-UA Bug 13014: (follow-up 2) Notify budget owner on new suggestion - sample notices 2015-06-24 11:49:12 -03:00
backfill_statistics.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
kohastructure.sql Bug 7793: redefine the field message_id as PRIMARY KEY of message_queue 2015-06-22 16:50:48 -03:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 14252: (followup) addresses the QA Manager comments 2015-06-23 10:24:46 -03:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Bug 9942: Make Koha fails if privacy is not respected 2015-07-07 14:52:32 -03:00