Bugzilla – Attachment 192176 Details for
Bug 39802
Add CircControl equivalent system preference for lost item fees and actions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39802: Atomic update file
f4082fe.patch (text/plain), 1.74 KB, created by
Martin Renvoize (ashimema)
on 2026-01-29 17:42:27 UTC
(
hide
)
Description:
Bug 39802: Atomic update file
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2026-01-29 17:42:27 UTC
Size:
1.74 KB
patch
obsolete
>From f4082feda6e8752237f59c05085af0a22bbb5515 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 6 Aug 2025 18:01:50 +0000 >Subject: [PATCH] Bug 39802: Atomic update file > >Sponsored-by: MAIN Library Alliance >Signed-off-by: Trevor Diamond <trevor.diamond@mainlib.org> >Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> >--- > .../data/mysql/atomicupdate/bug_39802.pl | 25 +++++++++++++++++++ > 1 file changed, 25 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_39802.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_39802.pl b/installer/data/mysql/atomicupdate/bug_39802.pl >new file mode 100755 >index 00000000000..2b55e8f8ac7 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_39802.pl >@@ -0,0 +1,25 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "39802", >+ description => "Add LostChargesControl system preference", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ # Get the existing value from the CircControl system preference >+ my ($circcontrol) = $dbh->selectrow_array( >+ q| >+ SELECT value FROM systempreferences WHERE variable='CircControl'; >+ | >+ ); >+ $dbh->do( >+ q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ ('LostChargesControl',?,'PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the charges for items being marked lost','Choice') >+ }, undef, $circcontrol >+ ); >+ say $out "Added new system preference 'LostChargesControl'"; >+ }, >+}; >-- >2.52.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 39802
:
185160
|
185161
|
185162
|
185165
|
187569
|
187570
|
187571
|
187572
|
187581
|
192173
|
192174
|
192175
| 192176 |
192177
|
192178