mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
ticket integria: 3929 fixed pdf report graph repeat color for more 15 modules #19
(cherry picked from commit 062aefeafc9a5376e7dd4be84d4174d5f7628e77)
This commit is contained in:
parent
a7f16ea182
commit
78d87cc12b
@ -285,6 +285,18 @@ foreach ($colors as $i => $color) {
|
||||
|
||||
$rgb_color[$i]['alpha'] = $color['alpha'];
|
||||
}
|
||||
//add for report with max 15 modules comparation repeat
|
||||
$countlegend = count($legend);
|
||||
if($countlegend > 15){
|
||||
$i=16;
|
||||
$l=0;
|
||||
while ($countlegend > 15){
|
||||
$rgb_color[$i] = $rgb_color[$l];
|
||||
$l++;
|
||||
$i++;
|
||||
$countlegend--;
|
||||
}
|
||||
}
|
||||
|
||||
/*foreach($colors as $i => $color) {
|
||||
if (isset($color['border'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user