Page 1 of 1

problem with enum_resolution

Posted: 15 Sep 2008, 22:47
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??? :?:

Re: problem with enum_resolution

Posted: 10 Oct 2008, 06:57
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';