Custom colors not matching statuses

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
krylion
Posts: 2
Joined: 02 Mar 2020, 07:20

Custom colors not matching statuses

Post by krylion »

I've customized the statuses in Mantis 2.23.0 following the instructions posted at http://www.mantisbt.org/docs/master/en- ... ize.status, but they aren't working.

I've added this in my config_inc.php:

Code: Select all

$g_status_enum_string = '10:New,20:Feedback,50:Assigned,80:Resolved,85:Packaged,86:QC Testing,87:UAT Released,88:Released,90:Closed';

$g_status_colors['New']		= '#d0a0d0';	# 10 light purple
$g_status_colors['Feedback']	= '#ef8080';	# 20 red
$g_status_colors['Assigned']	= '#ace6c5';	# 50 pale green
$g_status_colors['Resolved']	= '#a3e5ff';	# 80 sky blue
$g_status_colors['Packaged']	= '#fcfbcf';	# 85 yellow
$g_status_colors['QC Testing']	= '#ffbf00';	# 86 amber
$g_status_colors['UAT Released']= '#595959';	# 87 dark grey
$g_status_colors['Released']	= '#595959';	# 88 dark grey
$g_status_colors['Closed']	= '#adadad';	# 90 grey
And also added this in custom_constants_inc.php:

Code: Select all

<?php
	# Custom status code
	define( 'New', 10 );
	define( 'Feedback', 20 );
	define( 'Assigned', 50 );
	define( 'Resolved', 80 );
	define( 'Packaged', 85 );
	define( 'QC Testing', 86 );
	define( 'UAT Released', 87 );
	define( 'Released', 88 );
	define( 'Closed', 90 );
For some reason, a couple of the statuses (Packaged and Resovled) share the same color (pale green), and many of the others don't match what was customized for them (Assigned is pale blue instead of the pale green I want, etc). A few of the statuses do match the correct color. I've tried defining it as above and as an array, neither work.

Am I missing something?
krylion
Posts: 2
Joined: 02 Mar 2020, 07:20

Re: Custom colors not matching statuses

Post by krylion »

Ignore this post now. Resolved the issue. Just has to delete browser cache for changes to take on!!! :roll:
Post Reply