problem with enum_resolution

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
artgroup
Posts: 29
Joined: 02 Jul 2008, 12:35

problem with enum_resolution

Post by artgroup »

Hi all,
I added this enumeration lists on config_inc.php:

Code: Select all

  $g_resolution_enum_string= '10:open, 20:fixed, 25:repaired, 30:reopened, 40:unable to duplicate, 50:not fixable, 60:duplicate, 70:not a bug'; #,80:suspended,90:wont fix
in which I added '25:repaired' and I removed a couple of the standard one.
Then I added also the $s_resolution_enum_string in custom_strings.php file as follow:

Code: Select all

  $s_resolution_enum_string = '10:open, 20:fixed, 25:repaired, 30:reopened, 40:unable to duplicate, 50:not fixable, 60:duplicate, 70:not a bug'; #,80:suspended,90:wont fix
And everything seems fine a part of the summary page where I have a mixed result for strings; part of 'RESOLUTION' strings are correct, while someother are wrong!
Reporter By Resolution open @\r\n 20@ @\r\n 25@ @\r\n 30@ @\r\n 40@ @\r\n 50@ @\r\n 60@ @\r\n 70@ % False
reporter_test_user 1 0 0 0 0 0 0 0 0%
Developer By Resolution open @\r\n 20@ @\r\n 25@ @\r\n 30@ @\r\n 40@ @\r\n 50@ @\r\n 60@ @\r\n 70@ % Fixed
I added also the constant to custom_constant_inc_php

Code: Select all

	# resolution
	define( 'OPEN',					10 );
	define( 'FIXED',				20 );
	define( 'REPAIRED',     25 );
	define( 'REOPENED',			30 );
	define( 'UNABLE_TO_DUPLICATE',	40 );
	define( 'NOT_FIXABLE',			50 );
	define( 'DUPLICATE',			60 );
	define( 'NOT_A_BUG',			70 );
	define( 'SUSPENDED',			80 );
	define( 'WONT_FIX',				90 );
with no effect.
Is there a Bug on summary_page.php code or DID I MISS SOMETHING? I look into the forum and into the manual and seems that I did not forget anything.

Any idea??? :?:
Chris by ArtGroup

Mantis: 1.1.2
PHP: 5.2.5
SQL: MySQL 5.0.51a
OS: XP SP2
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Re: problem with enum_resolution

Post by deboutv »

Make sure that there is no extra space or new line between values in your enum.

Good:

Code: Select all

$g_resolution_enum_string =  '10:a,20:b,30:c';
Bad:

Code: Select all

$g_resolution_enum_string =  '10:a, 20:b,
                              30:c';
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
Post Reply