Custom button not showing on confirmation page

Post about your customizations to share with others.

Moderators: Contributor, Developer

Custom button not showing on confirmation page

Postby fleduc » Jun 07, 2017 12:55 pm

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 942 times
status ok.png
status ok.png (40.09 KiB) Viewed 942 times
custom workflow.png
custom workflow.png (70.82 KiB) Viewed 942 times
fleduc
 
Posts: 1
Joined: Jun 07, 2017 10:07 am

Re: Custom button not showing on confirmation page

Postby titovetch » Jul 30, 2017 7:43 am

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.';
titovetch
 
Posts: 19
Joined: Jun 20, 2017 9:26 am


Return to Customizations

Who is online

Users browsing this forum: No registered users and 2 guests