Subject: | The menu location is not under Reports |
Date: | Mon, 9 Apr 2018 13:26:06 -0500 |
To: | bug-RT-Extension-ActivityReports [...] rt.cpan.org |
From: | Kenneth Marshall <ktm [...] rice.edu> |
Hi,
I just installed version 1.08 and the documentation indicates that the
access location is to appear under the Reports tab. Instead, it it
showing up under the Tools tab. Also, there were A LOT of use of
uninitialized value warnings when running a report that flooded the
log file. A big one was:
Use of uninitialized value in numeric gt (>) at /opt/rt442/local/plugins/RT-Extension-ActivityReports/html/Reports/Activity/Elements
/MiniPlot line 44
Here is the function:
my %minor;
for my $major (keys %{$data}) {
for (keys %{$data->{$major}}) {
$minor{$_}++;
$max = $data->{$major}{$_} if $data->{$major}{$_} > $max;
}
}
I changed it to not run the line if it is not defined:
my %minor;
for my $major (keys %{$data}) {
for (keys %{$data->{$major}}) {
$minor{$_}++;
# Don't test and move on if undef
next unless defined($data->{$major}{$_});
$max = $data->{$major}{$_} if $data->{$major}{$_} > $max;
}
}
Regards,
Ken