Custom button not showing on confirmation page

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
fleduc
Posts: 1
Joined: 07 Jun 2017, 15:07

Custom button not showing on confirmation page

Post by fleduc »

Hi.

I have created a custom status, as per documentation: (http://www.mantisbt.org/docs/master-1.2 ... tatus.html) and everything is almost working fine...

Has you can see in the screen shots, my new status "Future version" is everywhere, as exptected, except in the confirmation page button.

Here you will find the modification done on config/config_inc.php

Code: Select all

# Revised enum string with new 'future' status
$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:future version,80:resolved,90:closed';

# Status color additions
$g_status_colors['future version'] = '#ef3fff';

$g_status_enum_workflow[NEW_]         ='30:acknowledged,20:feedback,40:confirmed,50:assigned,60:future version,80:resolved';
$g_status_enum_workflow[FEEDBACK]     ='30:acknowledged,40:confirmed,50:assigned,60:future version,80:resolved';
$g_status_enum_workflow[ACKNOWLEDGED] ='40:confirmed,20:feedback,50:assigned,60:future version,80:resolved';
$g_status_enum_workflow[CONFIRMED]    ='50:assigned,20:feedback,30:acknowledged,80:resolved';
$g_status_enum_workflow[ASSIGNED]     ='60:future version,20:feedback,30:acknowledged,40:confirmed,80:resolved';
$g_status_enum_workflow[FUTURE]       ='10:new,90:closed';
$g_status_enum_workflow[RESOLVED]     ='90:closed,20:feedback,50:assigned';
$g_status_enum_workflow[CLOSED]       ='20:feedback,50:assigned';
Here you will find the modification added in config/custom_constants_inc.php

Code: Select all

<?php
	# Custom status code
	define( 'FUTURE', 60 );

Here you will find the modification added in config/custom_strings_inc.php

Code: Select all

<?php
# Translation for Custom Status Code: future
switch( $g_active_language ) {

	case 'french':
		$s_status_enum_string = '10:nouveau,20:commentaire,30:accepté,40:confirmé,50:affecté,60:version future,80:résolu,90:fermé';

		$s_testing_bug_title = 'À mettre dans une version future';
		$s_testing_bug_button = 'Version future';

		$s_email_notification_title_for_status_bug_testing = 'La fonctionnalité suivante a été repoussée vers une version future.';
		break;

	default: # english
		$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:future version,80:resolved,90:closed';

		$s_testing_bug_title = 'To be put in a future version';
		$s_testing_bug_button = 'Future version';

		$s_email_notification_title_for_status_bug_testing = 'The following fonctionality is to be evaluted for a future version.';
		break;
}
Any help would be appreciated

Thanks
Attachments
missing button.png
missing button.png (14.12 KiB) Viewed 4609 times
status ok.png
status ok.png (40.09 KiB) Viewed 4609 times
custom workflow.png
custom workflow.png (70.82 KiB) Viewed 4609 times
titovetch
Posts: 44
Joined: 20 Jun 2017, 14:26

Re: Custom button not showing on confirmation page

Post by titovetch »

just replace testing with future

Code: Select all

      $s_future_bug_title = 'To be put in a future version';
      $s_future_bug_button = 'Future version';
      $s_email_notification_title_for_status_bug_future = 'The following fonctionality is to be evaluted for a future version.';
Post Reply