Hi there,
I am new to Mantis and i am using the latest version.
I would like to change the name of the status to
$g_status_enum_string = '10:new,20:onhold,30:Wip,40:Test,50:Fixed,80:Acknowledged,90:closed';
It is only a rename, so, if i am not mistaken the only thing to do is to add this line into config_inc.php
But is not working.
What am I missing?
Thanks
Cannot change status label in latest version.
Moderators: Developer, Contributor
Re: Cannot change status label in latest version.
Follow the instructions under
You have to change $s_status_enum_string in config/custom_strings_inc.php
https://mantisbt.org/docs/master/en-US/ ... ize.status3. Define the required translation strings for the new status, for each language used in the installation.
You have to change $s_status_enum_string in config/custom_strings_inc.php
-
- Posts: 5
- Joined: 07 Dec 2019, 17:27
Re: Cannot change status label in latest version.
Thank you Atrol,
I did read this before but I am not trying to define a new status, but instead trying to simply change the name of the current ones. That means I do not need a constant and can use the "old constant" 10-20-30-40-50-80-90. Note here I did not insert the 60 like in the wiki.
So I direcly go to step 2 and add this line to my config_inc.php
$g_status_enum_string = '10:new,20:onhold,30:Wip,40:Test,50:Fixed,80:Acknowledged,90:closed';
For the point 3, I do not need any translation, then the workflow is the same... so i do not need to update that part either.
However, after changing the status names, I still do not get the result expected.
What am I doing wrong then?
Have a good day
I did read this before but I am not trying to define a new status, but instead trying to simply change the name of the current ones. That means I do not need a constant and can use the "old constant" 10-20-30-40-50-80-90. Note here I did not insert the 60 like in the wiki.
So I direcly go to step 2 and add this line to my config_inc.php
$g_status_enum_string = '10:new,20:onhold,30:Wip,40:Test,50:Fixed,80:Acknowledged,90:closed';
For the point 3, I do not need any translation, then the workflow is the same... so i do not need to update that part either.
However, after changing the status names, I still do not get the result expected.
What am I doing wrong then?
Have a good day
Re: Cannot change status label in latest version.
Try what I wrote before
In your case set
$s_status_enum_string = '10:new,20:onhold,30:Wip,40:Test,50:Fixed,80:Acknowledged,90:closed';
in config/custom_strings_inc.php
In your case set
$s_status_enum_string = '10:new,20:onhold,30:Wip,40:Test,50:Fixed,80:Acknowledged,90:closed';
in config/custom_strings_inc.php
-
- Posts: 5
- Joined: 07 Dec 2019, 17:27
Re: Cannot change status label in latest version.
Ok, i understand, you treat this as a translation. Make sense.
Could I humbly recommended that you update the wiki this way :\
-7.5.1 Create a new status
(with all current info)
-7.5.2 Rename an existing status
If you want to simply rename an existing statuts, in subfolder config, locate and edit file custom_constants_inc.php (if not there, simply create it) and add those lines :
Have a good week end and once again, thanks for your precious help
Nic
Could I humbly recommended that you update the wiki this way :\
-7.5.1 Create a new status
(with all current info)
-7.5.2 Rename an existing status
If you want to simply rename an existing statuts, in subfolder config, locate and edit file custom_constants_inc.php (if not there, simply create it) and add those lines :
Code: Select all
<?php
$s_status_enum_string = '10:RenamedStatus1,20:RenamedStatus2,30:RenamedStatus3,40:RenamedStatus4,50:RenamedStatus5,80:RenamedStatus6,90:RenamedStatus7';
Nic