Permalink
Browse files

Fix SYSTEM NOTICE on graph pages

Fixes #25466
  • Loading branch information...
atrol committed Feb 10, 2019
1 parent d5ee146 commit 6dd420c43781168715e78cd3a46b5cddc32f0660
Showing with 1 addition and 4 deletions.
  1. +1 −4 plugins/MantisGraph/core/graph_api.php
@@ -111,14 +111,11 @@ function graph_colors_to_rgbas( array $p_colors, $p_alpha ) {
*/
function graph_status_colors_to_colors() {
$t_status_enum = config_get( 'status_enum_string' );
$t_status_colors = config_get( 'status_colors' );
$t_statuses = MantisEnum::getValues( $t_status_enum );
$t_colors = array();
foreach( $t_statuses as $t_status ) {
$t_status_name = MantisEnum::getLabel( $t_status_enum, $t_status );
$t_status_color = $t_status_colors[$t_status_name];
$t_colors[] = $t_status_color;
$t_colors[] = get_status_color( $t_status );
}
return $t_colors;

0 comments on commit 6dd420c

Please sign in to comment.