Bugzilla – Attachment 123362 Details for
Bug 25078
Update DB process - wrap each DBRev inside a transaction and better error handling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25078: (follow-up) Update 'NewVersion' for output_version changes
Bug-25078-follow-up-Update-NewVersion-for-outputve.patch (text/plain), 1.35 KB, created by
Jonathan Druart
on 2021-08-02 10:29:54 UTC
(
hide
)
Description:
Bug 25078: (follow-up) Update 'NewVersion' for output_version changes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-08-02 10:29:54 UTC
Size:
1.35 KB
patch
obsolete
>From 19474d9c00734e8e2df1444536bda5aff6eedfeb Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 23 Jun 2021 12:16:11 +0100 >Subject: [PATCH] Bug 25078: (follow-up) Update 'NewVersion' for output_version > changes > >This patch updates the NewVersion compatability method to add arrayref >description handling to split it into description + report. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Installer.pm | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > >diff --git a/C4/Installer.pm b/C4/Installer.pm >index 29809d8eae0..066ea597e07 100644 >--- a/C4/Installer.pm >+++ b/C4/Installer.pm >@@ -861,13 +861,19 @@ sub NewVersion { > > SetVersion($DBversion); > >- unless ( ref($descriptions) ) { >- $descriptions = [ $descriptions ]; >+ my ( $description, $report ); >+ if ( ref($descriptions) ) { >+ $description = shift @$descriptions; >+ $report = join( "\n", @{$descriptions} ); >+ } >+ else { >+ $description = $descriptions; > } > > my $output = output_version( { > bug_number => $bug_number, >- description => $descriptions, >+ description => $description, >+ report => $report, > version => $DBversion, > time => POSIX::strftime( "%H:%M:%S", localtime ), > }); >-- >2.20.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 25078
:
102521
|
116032
|
116033
|
116034
|
116208
|
116209
|
117084
|
121909
|
121910
|
121911
|
121982
|
121983
|
121984
|
122208
|
122322
|
122323
|
122324
|
122325
|
122326
|
122329
|
122665
|
122666
|
122667
|
122668
|
122669
|
122670
|
122671
|
122679
|
122680
|
122875
|
123356
|
123357
|
123358
|
123359
|
123360
|
123361
| 123362 |
123363
|
123364
|
123365
|
123366
|
123367
|
123850
|
123851
|
123853
|
123937
|
124269