Bugzilla – Attachment 156032 Details for
Bug 34720
UpdateNotForLoanStatusOnCheckin should be named UpdateNotForLoanStatusOnCheckout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34720: Say if syspref has been inserted
Bug-34720-Say-if-syspref-has-been-inserted.patch (text/plain), 1.70 KB, created by
Marcel de Rooy
on 2023-09-22 07:48:25 UTC
(
hide
)
Description:
Bug 34720: Say if syspref has been inserted
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-09-22 07:48:25 UTC
Size:
1.70 KB
patch
obsolete
>From 30cde3ca7231cdef839e9664dee583411f070772 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 22 Sep 2023 08:30:35 +0200 >Subject: [PATCH] Bug 34720: Say if syspref has been inserted >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > installer/data/mysql/atomicupdate/bug_30403.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_30403.pl b/installer/data/mysql/atomicupdate/bug_30403.pl >index 4e91ec1de7..49663a9f5a 100755 >--- a/installer/data/mysql/atomicupdate/bug_30403.pl >+++ b/installer/data/mysql/atomicupdate/bug_30403.pl >@@ -7,12 +7,12 @@ return { > my ($args) = @_; > my ( $dbh, $out ) = @$args{qw(dbh out)}; > >- $dbh->do( >+ my $inserted = $dbh->do( > q{ > INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type ) > VALUES ('UpdateNotForLoanStatusOnCheckout', '', 'NULL', 'This is a list of value pairs. When an item is checked out, if the not for loan value on the left matches the items not for loan value it will be updated to the right-hand value. E.g. ''-1: 0'' will cause an item that was set to ''Ordered'' to now be available for loan. Each pair of values should be on a separate line.', 'Free') > } > ); >- say $out "Added new system preference 'UpdateNotForLoanStatusOnCheckout'"; >+ say $out ( $inserted == 1 ) ? "Added new system preference 'UpdateNotForLoanStatusOnCheckout'" : "Skipped - System preference exists already in DB" > }, > }; >-- >2.30.2
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 34720
:
155968
|
156028
|
156029
|
156031
| 156032