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

(-)a/installer/data/mysql/atomicupdate/bug_38040-IndependentBranchesHolds_syspref.pl (-1 / +14 lines)
Line 0 Link Here
0
- 
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "38040",
6
    description => "Prevent staff (but not superlibrarians) from modifying holds from other libraries:",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('IndependentBranchesHolds', '1', NULL, 'Prevent staff (but not superlibrarians) from modifying holds from other libraries', 'YESNO')});
12
        say_success( $out, "Added new system preference 'IndependentBranchesHolds'" );
13
    },
14
};

Return to bug 38040