Bugzilla – Attachment 176953 Details for
Bug 38794
AggregatedFullText description should be Aggregated full text
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38794: say_success only if updated
Bug-38794-saysuccess-only-if-updated.patch (text/plain), 1.50 KB, created by
Jonathan Druart
on 2025-01-23 11:54:57 UTC
(
hide
)
Description:
Bug 38794: say_success only if updated
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-01-23 11:54:57 UTC
Size:
1.50 KB
patch
obsolete
>From 4c38a9337a58220ba9e574051c18d106b192602f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 23 Jan 2025 12:54:14 +0100 >Subject: [PATCH] Bug 38794: say_success only if updated > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > installer/data/mysql/atomicupdate/bug_38794.pl | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_38794.pl b/installer/data/mysql/atomicupdate/bug_38794.pl >index 4b027659eb3..443eccc4327 100755 >--- a/installer/data/mysql/atomicupdate/bug_38794.pl >+++ b/installer/data/mysql/atomicupdate/bug_38794.pl >@@ -8,12 +8,15 @@ return { > my ($args) = @_; > my ( $dbh, $out ) = @$args{qw(dbh out)}; > >- # Do you stuffs here > $dbh->do( >- q{update authorised_values set lib = "Aggregated full text" where category = "ERM_PACKAGE_CONTENT_TYPE" and authorised_value = "AggregatedFullText" and lib = "Aggregated full"} >- ); >- >- say_success( $out, "Updated description of authorized value AggregatedFullText" ); >+ q{ >+ UPDATE authorised_values >+ SET lib = "Aggregated full text" >+ WHERE category = "ERM_PACKAGE_CONTENT_TYPE" >+ AND authorised_value = "AggregatedFullText" >+ AND lib = "Aggregated full" >+ } >+ ) == 1 && say_success( $out, "Updated description of authorized value AggregatedFullText" ); > > }, > }; >-- >2.34.1
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 38794
:
176328
|
176329
|
176345
|
176346
|
176405
|
176406
|
176951
|
176952
| 176953