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

(-)a/installer/data/mysql/atomicupdate/bug_34597.pl (-1 / +16 lines)
Line 0 Link Here
0
- 
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "34597",
6
    description => "Update BlockExpiredPatronOpacActions to include ill_request",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(
12
            "UPDATE systempreferences SET options='hold,renew,ill_request' WHERE variable='BlockExpiredPatronOpacActions'"
13
        );
14
        say_success( $out, "BlockExpiredPatronOpacActions system updated to include ill_request." );
15
    },
16
};

Return to bug 34597