Bugzilla – Attachment 180582 Details for
Bug 38040
IndependentBranches doesn't prevent editing other libraries' holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38040: DB Update - Adding IndependentBranchesHolds syspref
Bug-38040-DB-Update---Adding-IndependentBranchesHo.patch (text/plain), 1.45 KB, created by
William Lavoie
on 2025-04-03 14:44:37 UTC
(
hide
)
Description:
Bug 38040: DB Update - Adding IndependentBranchesHolds syspref
Filename:
MIME Type:
Creator:
William Lavoie
Created:
2025-04-03 14:44:37 UTC
Size:
1.45 KB
patch
obsolete
>From 5185467226ecf657e26d41515eb06469a4881960 Mon Sep 17 00:00:00 2001 >From: William Lavoie <william.lavoie@inLibro.com> >Date: Thu, 3 Apr 2025 10:44:07 -0400 >Subject: [PATCH] Bug 38040: DB Update - Adding IndependentBranchesHolds > syspref > >--- > .../bug_38040-IndependentBranchesHolds_syspref.pl | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_38040-IndependentBranchesHolds_syspref.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_38040-IndependentBranchesHolds_syspref.pl b/installer/data/mysql/atomicupdate/bug_38040-IndependentBranchesHolds_syspref.pl >new file mode 100644 >index 0000000000..a878b5d57f >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_38040-IndependentBranchesHolds_syspref.pl >@@ -0,0 +1,14 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "38040", >+ description => "Prevent staff (but not superlibrarians) from modifying holds from other libraries:", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $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')}); >+ say_success( $out, "Added new system preference 'IndependentBranchesHolds'" ); >+ }, >+}; >-- >2.43.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38040
:
173400
|
176050
|
177197
|
177198
|
177292
|
177472
|
177492
|
178014
|
178015
|
178016
|
179186
|
179187
|
179714
|
180531
|
180532
|
180581
|
180582
|
180898
|
180899
|
180900
|
182444
|
182445
|
182446
|
182447