Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Aleisha Amohia 6ff09b16f1
Bug 11889: Disown a list upon deletion of owner
This patch adds a syspref 'ListOwnershipUponPatronDeletion' which
decides if all the owner's lists (public and private) are deleted
when the owner is deleted, or if the ownership of their public and
shared lists are transfered to the user who deleted the owner (private
lists that are not shared are always deleted).

To test:
1) Apply patch and update database
2) Set the ListOwnershipUponPatronDeletion syspref to 'Transfer...'
3) Set up a superlibrarian user
4) Log in as this superlibrarian user and set up three lists, a public
list (maybe named 'public'), and two private lists (named 'private' and
'shared')
5) Log in as this user to the opac (if you haven't already) and share
the 'shared' list with someone
6) View the virtualshelves table in mysql to see the three lists you
just created under your new user
7) Also view the virtualshelfshares table in mysql to see the 'shared'
list
8) Log into the staff client with your regular user (a different user to
the one you just created)
9) Search for the user you just created and delete them
10) Go to your lists
11) You should see the 'shared' list under your private lists, and their
'public' list under your public lists, both with you as the owner
12) if you view both the virtualshelves table and the virtualshelfshares
table in mysql again, youll see you are now the owner and the 'private'
list will no longer exist.
13) Set the ListOwnershipUponPatronDeletion syspref back to 'Delete...'
14) Repeat steps 3 - 10 again (it may help to delete the 'shared' and
'public' lists before you re-create them)
15) You should not see any of the lists you just made under private or
public lists this time. To confirm, check the virtualshelves table in
mysql and make sure that all three lists have been deleted.

Sponsored-by: Catalyst IT
Signed-off-by: Cédric Vita <cedric.vita@dracenie.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
2022-06-08 Removed old atomic update. See new follow-up.
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-07-19 11:00:10 -03:00
..
preferences Bug 11889: Disown a list upon deletion of owner 2022-07-19 11:00:10 -03:00
searchengine/elasticsearch Bug 29632: Don't sort cn-sort numerically 2022-07-18 11:21:47 -03:00
additional-fields.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
admin-home.tt Bug 30640: Focus does not always move to correct search header form field 2022-05-18 17:22:08 -10:00
adveditorshortcuts.tt
aqbudgetperiods.tt
aqbudgets.tt Bug 30733: Fix string context lost due to being in two parts 2022-06-17 10:16:40 -03:00
aqcontract.tt
aqplan.tt
audio_alerts.tt
auth_subfields_structure.tt Bug 30733: fix url => URL to merge with existing string 2022-06-17 10:16:44 -03:00
auth_tag_structure.tt
authorised_values.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
authtypes.tt Bug 30733: Fix string context lost due to being in two parts 2022-06-17 10:16:40 -03:00
background_jobs.tt Bug 29346: Add better reporting 2022-05-05 11:17:36 -10:00
biblio_framework.tt
branch_transfer_limits.tt
branches.tt Bug 30937: Surroung Yes/No with span 2022-06-27 12:35:31 -03:00
cash_registers.tt
categories.tt Bug 12446: (QA follow-up) Rename canbeguarantee => can_be_guarantee 2022-06-23 13:34:05 -03:00
checkmarc.tt
cities.tt Bug 30733: Fix string context lost due to being in two parts 2022-06-17 10:16:40 -03:00
classsources.tt
clone-rules.tt Bug 31117: New message for cloning standard rules 2022-07-08 15:25:19 -03:00
columns_settings.tt Bug 30733: Move all semicolons inside the translatable strings 2022-06-17 10:16:40 -03:00
credit_types.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
currency.tt Bug 29648: Fix occurrences of GetColumns 2022-04-27 11:20:45 -10:00
debit_types.tt Bug 30733: Fix string context lost due to being in two parts 2022-06-17 10:16:40 -03:00
desks.tt
didyoumean.tt
edi_accounts.tt
edi_ean_accounts.tt
item_circulation_alerts.tt
items_search_field.tt
items_search_fields.tt
itemtypes.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
koha2marclinks.tt
library_groups.tt
localization.tt
marc-overlay-rules.tt
marc_subfields_structure.tt Bug 30733: Split strings differently 2022-06-17 10:16:44 -03:00
marctagstructure.tt Bug 30733: Split strings differently 2022-06-17 10:16:44 -03:00
matching-rules.tt
oai_set_mappings.tt
oai_sets.tt
overdrive.tt
patron-attr-types.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
preferences.tt
share_content.tt
smart-rules.tt Bug 30991: Fix remaining instances of [% ELSE %]0[% END %] in templates 2022-06-25 15:20:44 -03:00
sms_providers.tt
smtp_servers.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
sru_modmapping.tt
sru_modmapping_auth.tt
systempreferences.tt
transfer_limits.tt
transport-cost-matrix.tt
usage_statistics.tt
z3950servers.tt