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> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
ef9aab0e59
commit
b86a54ad73
1 changed files with 9 additions and 3 deletions
|
@ -869,13 +869,19 @@ sub NewVersion {
|
||||||
|
|
||||||
SetVersion($DBversion);
|
SetVersion($DBversion);
|
||||||
|
|
||||||
unless ( ref($descriptions) ) {
|
my ( $description, $report );
|
||||||
$descriptions = [ $descriptions ];
|
if ( ref($descriptions) ) {
|
||||||
|
$description = shift @$descriptions;
|
||||||
|
$report = join( "\n", @{$descriptions} );
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$description = $descriptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $output = output_version( {
|
my $output = output_version( {
|
||||||
bug_number => $bug_number,
|
bug_number => $bug_number,
|
||||||
description => $descriptions,
|
description => $description,
|
||||||
|
report => $report,
|
||||||
version => $DBversion,
|
version => $DBversion,
|
||||||
time => POSIX::strftime( "%H:%M:%S", localtime ),
|
time => POSIX::strftime( "%H:%M:%S", localtime ),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue