View Issue Details

IDProjectCategoryView StatusLast Update
0021755mantisbtcustomizationpublic2016-10-16 16:10
Reporterpiotrusx Assigned Toatrol  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version1.3.2 
Summary0021755: add status problem
Description

Hello,
I try add a new status using step by step this guide:
https://www.mantisbt.org/manual/admin.customize.status.html
But it doesn't works.
I see in configuration menu only status "@60@", without my name, etc.
I checked many times all steps (I want to add "testing" status - identical like in the manual).
Could help me?

TagsNo tags attached.
Attached Files
config_inc.php (2,472 bytes)   
<?php
    $g_hostname = 'localhost';
    $g_db_type = 'mysqli';
    $g_database_name = 'xxx';
    $g_db_username = 'xxx';
    $g_db_password = 'xxx';
    $g_default_language = 'polish';
    $g_webmaster_email      = 'xxx';
    $g_from_email           = 'xxx';
    $g_return_path_email    = 'xxx';
    $g_from_name		= 'Support System';
    $g_log_destination = 'file:/var/log/mantis/mantis.log';
#    $g_log_level = LOG_AJAX | LOG_EMAIL | LOG_WEBSERVICE;
    $g_log_level = LOG_NONE;
    $g_allow_signup = OFF;
    $g_window_title = 'Support';
    $g_logo_image = 'logo.jpg';
    $g_max_file_size = 15000000;
    $g_default_timezone       = 'Europe/Warsaw';
    $g_crypto_master_salt     = 'xxx';
    $g_show_avatar = ON;
    $g_path = 'https://xxx/';
    $g_allow_permanent_cookie = OFF;
    $g_show_realname = ON;
    $g_max_failed_login_count = 3;
    $g_show_version = OFF;
    $g_enable_profiles = OFF;
    $g_view_changelog_threshold = NOBODY;
    $g_roadmap_view_threshold = NOBODY;
    $g_default_category_for_moves = 8;
    $g_core_path = '/usr/local/mantis/core/';
    $g_config_path = '/usr/local/mantis/config/';
    $g_class_path = '/usr/local/mantis/core/classes/';
    $g_library_path = '/usr/local/mantis/library/';
    $g_language_path = '/usr/local/mantis/lang/';
    $g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:testing,80:resolved,90:closed';
    $g_status_colors['testing'] = '#ACE7AE';
    $g_status_enum_workflow[NEW_]         ='30:acknowledged,20:feedback,40:confirmed,50:assigned,80:resolved';
    $g_status_enum_workflow[FEEDBACK]     ='30:acknowledged,40:confirmed,50:assigned,80:resolved';
    $g_status_enum_workflow[ACKNOWLEDGED] ='40:confirmed,20:feedback,50:assigned,80:resolved';
    $g_status_enum_workflow[CONFIRMED]    ='50:assigned,20:feedback,30:acknowledged,80:resolved';
    $g_status_enum_workflow[ASSIGNED]     ='60:testing,20:feedback,30:acknowledged,40:confirmed,80:resolved';
    $g_status_enum_workflow[TESTING]      ='80:resolved,20:feedback,50:assigned';
    $g_status_enum_workflow[RESOLVED]     ='90:closed,20:feedback,50:assigned';
    $g_status_enum_workflow[CLOSED]       ='20:feedback,50:assigned';
    $g_bug_report_page_fields = array(
	'category_id',
	'reproducibility',
	'severity',
	'priority',
	'summary',
	'description',
	'additional_info',
	'attachments',
	'due_date',
	'view_state',
	'handler',
       );
?>
config_inc.php (2,472 bytes)   
custom_constants_inc.php (62 bytes)   
<?php
    # Custom status code
	define( 'TESTING', 60 );

custom_constants_inc.php (62 bytes)   
custom_strings_inc.php (856 bytes)   
<?php
# Translation for Custom Status Code: testing
switch( $g_active_language ) {

    case 'polish':
	$s_status_enum_string = '10:nowy,20:zwrócony,30:uznany,40:potwierdzony,50:przypisany,60:testowanie,80:rozwiązany,90:zamknięty';
	
	$s_testing_bug_title = 'Oznacz zgłoszenie jako gotowe do testowania';
	$s_testing_bug_button = 'Gotowe do testu';
	
	$s_email_notification_title_for_status_bug_testing = 'Następujące zgłoszenie jest gotowe do testowania.';
	break;
	
    default: # english
	$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:testing,80:resolved,90:closed';
	
	$s_testing_bug_title = 'Mark issue Ready for Testing';
	$s_testing_bug_button = 'Ready for Testing';
	
	$s_email_notification_title_for_status_bug_testing = 'The following issue is ready for TESTING.';
	break;
}
custom_strings_inc.php (856 bytes)   
MantisStatus.PNG (12,299 bytes)   
MantisStatus.PNG (12,299 bytes)   

Relationships

related to 0021757 closedatrol Config folder is not documented at all related places in documentation 

Activities

atrol

atrol

2016-10-05 10:57

developer   ~0054142

Which version of MantisBT do you use?

piotrusx

piotrusx

2016-10-05 11:23

reporter   ~0054143

1.3.2

atrol

atrol

2016-10-05 12:19

developer   ~0054145

Last edited: 2016-10-05 16:34

This is the right documentation for 1.3.x
https://www.mantisbt.org/docs/master-1.3.x/en-US/Admin_Guide/html-single/#admin.customize.status

You have to put file custom_strings_inc.php in folder config of your installation.
This has been changed since 1.2.x

It's not documented at all places of the admin guide.
I entered 0021757 for it.

piotrusx

piotrusx

2016-10-05 16:27

reporter   ~0054148

I put this file in config folder but it doesn't work still...

atrol

atrol

2016-10-05 16:39

developer   ~0054149

Please attach the relevant changes in configinc.php and the custom* files

atrol

atrol

2016-10-06 03:59

developer   ~0054150

I am not able to reproduce the issue, see attached MantisStatus.PNG

You should double check, that you put the files in the right folder

piotrusx

piotrusx

2016-10-06 08:13

reporter   ~0054156

I copied custom_strings_inc.php and new config to '/usr/local/mantis/config/'
Now it works.
Thanks a lot!