custom status issue

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
jkpalmer52
Posts: 78
Joined: 23 Feb 2005, 17:29
Location: US-Chicago area

custom status issue

Post 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!!!!
karl.reichert
Posts: 38
Joined: 02 Apr 2009, 12:22

Re: custom status issue

Post 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
Mantis: 1.2.1
OS: Windows Server 2003 R2
WampServer 2.0g-1 [03/12/09]
Includes :
- Apache 2.2.11
- MySQL 5.1.36
- PHP 5.2.11
sdye
Posts: 19
Joined: 27 Jul 2010, 19:12

Re: custom status issue

Post 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.
mandaillou
Posts: 5
Joined: 11 Jan 2011, 09:38

Re: custom status issue

Post by mandaillou »

Hi,
I'm facing the same problem, did you find out a solution ?
Thanks
Phileas
Posts: 29
Joined: 22 Feb 2010, 16:51
Location: Switzerland

Re: custom status issue

Post by Phileas »

Try to replace the space with underscore.
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: custom status issue

Post by atrol »

Please use Search before posting and read the Manual
Post Reply