6

「保留中」と呼ばれるカスタムステータスをMantisバグトラッカーに追加したいと思います。オンラインで見つけたいくつかのブログに続いて、config_local.phpに次の行を追加しました。

$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,55:onhold,80:resolved,90:closed';
$g_status_colors['onhold'] = '#cceedd';
$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,55:onhold,80:resolved,90:closed';

ただし、このステータスをバグに割り当てると、ドロップダウンに@55@と表示されます。

なぜこれが起こるのか、何か考えはありますか?

4

2 に答える 2

6

ステータス値のカスタマイズについては、Mantisリファレンスを参照してください。

新しいステータスをマップする定数を定義します。メインmantisbtディレクトリの新しいファイルcustom_constants_inc.phpで:

<?php define ( 'TEST', 60 ); ?>

必要な言語文字列を定義します。これは、いくつかの言語で定義する必要がある場合があります。メインmantisbtディレクトリの新しいファイルcustom_strings_inc.php:

<?php
$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned, 60:to be tested,80:resolved,90:closed';
$s_to_be_tested_bug_button = "Issue Ready to Test";
$s_to_be_tested_bug_title = "Set Issue Ready to Test"; 
$s_email_notification_title_for_status_bug_to_be_tested = "The following issue is ready TO BE TESTED.";
?>

必要な構成を定義します。メインmantisbtディレクトリの既存のファイルconfig_inc.phpで:

$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned, 60:to be tested,80:resolved,90:closed'; # Status color additions
$g_status_colors['to be tested'] = '#ACE7AE';                            

config_inc.phpで定義されているワークフローにステータスを追加します。

于 2012-05-10T08:41:05.447 に答える
1

MantisBTバージョン2.1.0を使用していますが、同じ問題が発生しました。私にとっての修正は、ファイルcustom_constants_inc.phpcustom_strings_inc.phpメインのmantisbtディレクトリからconfigディレクトリに移動することでした。

于 2017-02-23T04:48:26.297 に答える