[Koha] Possible 3.18.2 Bug

Jonathan Druart jonathan.druart at biblibre.com
Fri Jan 9 01:17:43 NZDT 2015


Patch on bug 13522

2015-01-08 12:49 GMT+01:00 Jonathan Druart <jonathan.druart at biblibre.com>:
> Hello Alex,
> It seems to be introduce by bug 11331.
> It only appears with perl version <= 5.10.
>
> The following change should fix your issue:
>
> diff --git a/tools/viewlog.pl b/tools/viewlog.pl
> index 9f68a8a..18eb0df 100755
> --- a/tools/viewlog.pl
> +++ b/tools/viewlog.pl
> @@ -211,7 +211,7 @@ if ($do_it) {
>
>              # First line with heading
>              # Exporting bd id seems useless
> -            my @headings = grep { $_ ne 'action_id' } sort keys $data[0];
> +            my @headings = grep { $_ ne 'action_id' } sort keys %{ $data[0] };
>              if ( $csv->combine(@headings) ) {
>                  $content .= $csv->string() . "\n";
>              }
>
>
> Could you please confirm?
>
> 2014-12-29 19:54 GMT+01:00 Alex87 <aletede87 at gmail.com>:
>> Hi,
>>
>> I have just upgrade from 16.1 to 18.2, but when in go to:
>>
>> Tools>Log viewer
>>
>> I get this error:
>> ...
>> Type of arg 1 to keys must be hash (not array element) at
>> /usr/share/koha/intranet/cgi-bin/tools/viewlog.pl line 214, near "];"
>> Execution of /usr/share/koha/intranet/cgi-bin/tools/viewlog.pl aborted due
>> to compilation errors.
>> ...
>>
>> Does anyone already experienced this?
>>
>> Thanks
>> Alex
>>
>>
>>
>> --
>> View this message in context: http://koha.1045719.n5.nabble.com/Possible-3-18-2-Bug-tp5823593.html
>> Sent from the Koha-general mailing list archive at Nabble.com.
>> _______________________________________________
>> Koha mailing list  http://koha-community.org
>> Koha at lists.katipo.co.nz
>> http://lists.katipo.co.nz/mailman/listinfo/koha


More information about the Koha mailing list