View | Details | Raw Unified | Return to bug 39145
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_39145.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "39145",
6
    description => "Adjust preference ListOwnershipUponPatronDeletion",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(q{
12
            UPDATE systempreferences SET options='delete|transfer|transfer_public' WHERE variable = 'ListOwnershipUponPatronDeletion'
13
        });
14
        say $out "Updated system preference 'ListOwnershipUponPatronDeletion'";
15
    },
16
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 391-397 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
391
('LinkerOptions','','','A pipe-separated list of options for the linker.','free'),
391
('LinkerOptions','','','A pipe-separated list of options for the linker.','free'),
392
('LinkerRelink','1',NULL,'If ON the authority linker will relink headings that have previously been linked every time it runs.','YesNo'),
392
('LinkerRelink','1',NULL,'If ON the authority linker will relink headings that have previously been linked every time it runs.','YesNo'),
393
('ListOwnerDesignated', NULL, NULL, 'Designated list owner at patron deletion', 'Free'),
393
('ListOwnerDesignated', NULL, NULL, 'Designated list owner at patron deletion', 'Free'),
394
('ListOwnershipUponPatronDeletion', 'delete', 'delete|transfer', 'Defines the action on their public or shared lists when patron is deleted', 'Choice'),
394
('ListOwnershipUponPatronDeletion', 'delete', 'delete|transfer|transfer_public', 'Defines the action on their public or shared lists when patron is deleted', 'Choice'),
395
('LoadCheckoutsTableDelay','0','','Delay before auto-loading checkouts table on checkouts screen','Integer'),
395
('LoadCheckoutsTableDelay','0','','Delay before auto-loading checkouts table on checkouts screen','Integer'),
396
('LoadSearchHistoryToTheFirstLoggedUser', '1', NULL, 'If ON, the next user will automatically get the last searches in their history', 'YesNo'),
396
('LoadSearchHistoryToTheFirstLoggedUser', '1', NULL, 'If ON, the next user will automatically get the last searches in their history', 'YesNo'),
397
('LocalCoverImages','0','1','Display local cover images on intranet details pages.','YesNo'),
397
('LocalCoverImages','0','1','Display local cover images on intranet details pages.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-3 / +3 lines)
Lines 37-44 Patrons: Link Here
37
         - "When deleting a patron who owns public or shared lists,"
37
         - "When deleting a patron who owns public or shared lists,"
38
         - pref: ListOwnershipUponPatronDeletion
38
         - pref: ListOwnershipUponPatronDeletion
39
           choices:
39
           choices:
40
            delete: "delete these lists."
40
               delete: "delete these lists."
41
            transfer: "change owner of these lists."
41
               transfer: "change owner of these lists."
42
               transfer_public: "change owner of public lists, delete shared lists."
42
         - All public or shared lists of this patron are either deleted or transferred to a new owner according to your choice; other private lists (not shared) are deleted.
43
         - All public or shared lists of this patron are either deleted or transferred to a new owner according to your choice; other private lists (not shared) are deleted.
43
         - "<br/>When changing owner at patron deletion, use borrowernumber "
44
         - "<br/>When changing owner at patron deletion, use borrowernumber "
44
         - pref: ListOwnerDesignated
45
         - pref: ListOwnerDesignated
45
- 

Return to bug 39145