Skip to content

Commit

Permalink
Fix SYSTEM NOTICE on graph pages
Browse files Browse the repository at this point in the history
Fixes #25466
  • Loading branch information
atrol committed Feb 10, 2019
1 parent b91a52e commit 02eed4f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/MantisGraph/core/graph_api.php
Expand Up @@ -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;
Expand Down

0 comments on commit 02eed4f

Please sign in to comment.