Bugzilla – Attachment 192473 Details for
Bug 41624
Revert Bug 35211
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41624: DB update to remove the pref
Bug-41624-DB-update-to-remove-the-pref.patch (text/plain), 1.52 KB, created by
Lucas Gass (lukeg)
on 2026-02-04 16:55:51 UTC
(
hide
)
Description:
Bug 41624: DB update to remove the pref
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2026-02-04 16:55:51 UTC
Size:
1.52 KB
patch
obsolete
>From 3654fdaff3cd23c9e17441581fb9703b546e88eb Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 4 Feb 2026 16:52:34 +0000 >Subject: [PATCH] Bug 41624: DB update to remove the pref > >--- > .../data/mysql/atomicupdate/bug_41624.pl | 31 +++++++++++++++++++ > 1 file changed, 31 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_41624.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_41624.pl b/installer/data/mysql/atomicupdate/bug_41624.pl >new file mode 100644 >index 00000000000..4387a7f683a >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_41624.pl >@@ -0,0 +1,31 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "41624", >+ description => "Remove SeparateHoldingsByGroup system preference", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ # Check if the preference exists before removing >+ my ($exists) = $dbh->selectrow_array( >+ q{ >+ SELECT COUNT(*) >+ FROM systempreferences >+ WHERE variable = 'SeparateHoldingsByGroup' >+ } >+ ); >+ >+ if ($exists) { >+ $dbh->do( >+ q{ >+ DELETE FROM systempreferences >+ WHERE variable = 'SeparateHoldingsByGroup' >+ } >+ ); >+ } >+ >+ say_success( $out, "Removed system preference 'SeparateHoldingsByGroup'" ); >+ }, >+}; >-- >2.39.5
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 41624
:
191470
|
191471
|
192464
|
192465
|
192466
|
192467
|
192468
|
192469
|
192470
|
192471
|
192472
|
192473
|
192724
|
192725
|
192785
|
192786