Commit 21e1359b authored by sunnavy's avatar sunnavy
Browse files

in case owners are too many, then we have to repeat colors

parent 92b24da6
......@@ -136,7 +136,8 @@ sub TicketsInfo {
my %color_map;
if ( $options{ColorSchemeByOwner} ) {
my @owner_names = uniq map { $_->OwnerObj->Name } @{ $args{Tickets} };
@color_map{@owner_names} = @colors[0 .. $#owner_names];
@color_map{@owner_names} =
(@colors) x ( int @colors / @owner_names + 1 );
if ( ref $options{ColorSchemeByOwner}
&& ref $options{ColorSchemeByOwner} eq 'HASH' )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment