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:
Martin Renvoize 2021-06-23 12:16:11 +01:00 committed by Jonathan Druart
parent ef9aab0e59
commit b86a54ad73

View file

@ -869,13 +869,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 ),
});