Page 1 of 1

custom status issue

Posted: 20 May 2010, 23:01
by jkpalmer52
Having trouble with adding a status

Help greatly appreciated

Created a new file custom_constant_inc.php and placed it in the main directory

File only contains:
<?php
define ( 'TO DISCUSS', 60 );
?>

I also added a line to my config_inc.php

$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:to discuss,80:resolved,90:closed';

When I try to update an issue to change the status, I see @60@ in the drop down list.

HELP PLEASE!!!!

Re: custom status issue

Posted: 21 May 2010, 07:31
by karl.reichert
Hello,

the @60@ is telling you that no translation for your new status was found. You need to create a custom_strings_inc.php and write the translation into there, e.g.:

Code: Select all

<?php
	if ( lang_get_current() == 'german' )
	{
		$s_status_enum_string = '10:neu,20:Rückmeldung,30:anerkannt,40:bestätigt,50:zugewiesen,60:in Diskussion,80:erledigt,90:geschlossen';
	}
	else
	{
		$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:to discuss,80:resolved,90:closed';
	}
?>
Best regards!
Karl

Re: custom status issue

Posted: 27 Jul 2010, 19:31
by sdye
I have done this and it doesn't work for me. I have tried everything (well everything I can find) even the example in the Mantis Manual and it doesn't seem to work. I have version 1.1.8.

Re: custom status issue

Posted: 11 Jan 2011, 09:44
by mandaillou
Hi,
I'm facing the same problem, did you find out a solution ?
Thanks

Re: custom status issue

Posted: 11 Jan 2011, 15:42
by Phileas
Try to replace the space with underscore.

Re: custom status issue

Posted: 11 Jan 2011, 15:45
by atrol