Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
best-practical
rt-extension-jsgantt
Commits
21e1359b
Commit
21e1359b
authored
Oct 27, 2011
by
sunnavy
Browse files
in case owners are too many, then we have to repeat colors
parent
92b24da6
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/RT/Extension/JSGantt.pm
View file @
21e1359b
...
...
@@ -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
'
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment