Page 1 of 2
Several customizations
Posted: 17 Mar 2014, 07:21
by Morpheus87
Hi,
We just updated our MantisBT from 1.2.0 to 1.2.17 and so far everything works fine. But I need to do some changes, so we have the same settings as before. For some reason a few things have changed.
The list is quit long and since I am not an PHP expert I need some help.
1. The user names are now shown in a short version. For example John Smith is now displayed as JS. How can I change that back?
2. In the Mantis Version 1.2.0 we defined a new severity called “Rejected”. So far it worked fine, but after the update all severity status in existing issues are now shown as numbers. For example “Feature” is shown as “@21@”.
3. Where can I define new Priorities?
4. If I create a new ticket, I have the options for Platform, OS, OS Version. How can I remove these?
5. Notes can now be edited by others. How can I change that so nobody can edit notes?
6. E-Mails used to have the issue-number and issue-title in the title. This is now missing.
7. The date format is now yyyy-mm-dd. I would like to change that to dd-mm-yyyy.
I hope you guys can help me out with this.

Re: Several customizations
Posted: 17 Mar 2014, 08:23
by atrol
It seems at first sight, that you missed the following step from the upgrading guide
Copy the configuration files
To preserve your system settings, you should copy the files listed below to the new directory, as well as any other custom files such as logo, favicon, css, etc.
config_inc.php custom_strings_inc.php custom_constants_inc.php custom_functions_inc.php
Re: Several customizations
Posted: 17 Mar 2014, 08:41
by Morpheus87
I backed up all files. So does that mean, that I can overwrite the new config_inc.php, custom_strings_inc.php, custom_constants_inc.php, custom_functions_inc.php files with my old ones and set back the settings?
Re: Several customizations
Posted: 17 Mar 2014, 09:09
by atrol
There is just one file you have to override: config_inc.php
All other files do not exist in your new system.
Re: Several customizations
Posted: 17 Mar 2014, 09:34
by Morpheus87
I did that and it didn't help, unfortunately.
Can anyone help me with my problem list? Especially point one and two.
1. The user names are now shown in a short version. For example John Smith is now displayed as JS. How can I change that back?
2. In the Mantis Version 1.2.0 we defined a new severity called “Rejected”. So far it worked fine, but after the update all severity status in existing issues are now shown as numbers. For example “Feature” is shown as “@21@”.
Re: Several customizations
Posted: 17 Mar 2014, 10:36
by atrol
Check your old config_inc.php
I expected you see an entry like $g_show_realname = ON;
Can you confirm this?
Re: Several customizations
Posted: 17 Mar 2014, 11:28
by Morpheus87
Check your old config_inc.php
I expected you see an entry like $g_show_realname = ON;
Can you confirm this?
Yes, I already fixed this. Thank you for your tip.
But so far I was not able to fix the problem with the severity. Do you have any idea how to solve this?
The strange thing is, if I click on an issue it shows the number. But if I update the issue with new information the severity shows now the text correctly.
Re: Several customizations
Posted: 17 Mar 2014, 16:09
by Morpheus87
The Problem with the severity is also fixed. After scrolling through the old config_default_inc.php file I finally found some changes effecting the severity made from somebody else years ago.
So that's why it didn't work. Now I changed it in the new config_inc.php and everything works fine!

Re: Several customizations
Posted: 18 Mar 2014, 09:42
by atrol
Morpheus87 wrote:made from somebody else years ago)
throw him to the floor, please
Thanks for coming back and telling the solution.
Re: Several customizations
Posted: 09 Apr 2014, 18:21
by Shifter7
I have a similar problem in that I want to replace Severity 'crash' with 'critical'
I followed the Admin guide and did the following, but now I get @75@
edit file custom_constants_inc.php; (create it if it does not exist)
<?php
# Custom severity code
define( 'CRITICAL', 75 );
In the main mantisbt directory, edit config_inc.php
# Revised enum string with new 'critical' severity
$g_severity_enum_string = '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,75:critical,80:block';
severity_enum_string = '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block'; is also in config_defaults_inc.php, but I was under the impression that this should not be changed
Any help would be greatly appreciated.
Re: Several customizations
Posted: 09 Apr 2014, 18:42
by atrol
You missed the step to set $s_severity_enum_string in file custom_strings_inc.php
Re: Several customizations
Posted: 09 Apr 2014, 21:51
by Shifter7
Well ok then...Thanks for the pointer.
Just to verify, should it be $s_severity_enum_string (as listed in your reply) or $g_severity_enum_string ?
Re: Several customizations
Posted: 09 Apr 2014, 22:03
by Shifter7
Nevermind...the admin guide says its an "s"
Re: Several customizations
Posted: 14 Apr 2014, 07:59
by Morpheus87
I’d like to edit the severity list. This is how it used to be:
10:feature,
20:trivial,
21:Feature-Wunsch,
30:text,
40:tweak,
41:error,
50:minor,
60:major,
70:crash,
80:block,
90:unknown
And this is how I want it to look like.
01:NA,
50:minor,
60:major,
80:block,
90:unknown
Now my problem is, if I change it in config_inc.php and custom_strings_inc.php old entries show up just as numbers (like @40@).
My question is, is it possible to keep the old values only for ‘old’ issues?
Re: Several customizations
Posted: 14 Apr 2014, 22:13
by atrol
I didn't try, but changing only config_inc.php should work.
Keep the old values in custom_strings_inc.php