Skip to content

Commit

Permalink
REST: Include status color along with status info
Browse files Browse the repository at this point in the history
  • Loading branch information
vboctor committed Apr 22, 2017
1 parent a6497fe commit 712ddde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/soap/mc_enum_api.php
Expand Up @@ -288,6 +288,11 @@ function mci_enum_get_array_by_id( $p_enum_id, $p_enum_type, $p_lang ) {
$t_enum_localized_value = lang_get( $t_enum_name );

$t_result['label'] = MantisEnum::getLocalizedLabel( $t_enum_string_value, $t_enum_localized_value, $p_enum_id );

if( $p_enum_type == 'status' ) {
$t_status_colors = config_get( 'status_colors' );
$t_result['color'] = $t_status_colors[$t_result['name']];
}
}

return $t_result;
Expand Down

0 comments on commit 712ddde

Please sign in to comment.