Fix crash when trying to view report.cgi with an inaccessible column
parent
fe7734fbc6
commit
94d624b036
|
@ -224,6 +224,12 @@ sub execute
|
||||||
$measure = 'count';
|
$measure = 'count';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# If the user has no access to the measured column, reset it to 'count'
|
||||||
|
if (!Bugzilla::Search->COLUMNS($runner)->{$measures->{$measure}})
|
||||||
|
{
|
||||||
|
$measure = 'count';
|
||||||
|
}
|
||||||
|
|
||||||
# Validate the values in the axis fields or throw an error.
|
# Validate the values in the axis fields or throw an error.
|
||||||
my %a;
|
my %a;
|
||||||
my @group_by = grep { !($a{$_}++) } values %$field;
|
my @group_by = grep { !($a{$_}++) } values %$field;
|
||||||
|
|
Loading…
Reference in New Issue