mantis 自定义状态仅在设置时更改新状态?

问题描述

所以我在这里学习了教程 https://www.mantisbt.org/docs/master/en-US/Admin_Guide/html/admin.customize.status.html 在我的 config_inc.PHP 中有

$g_status_enum_string = '10:reported,20:development_pending,30:development_in_progress,40:qa_pending,50:qa_in_progress,60:return_to_development,70:qa_completed,80:deployed_to_production,90:closed';

然后在 custom_constants_inc.PHP 我有

define( 'REPORTED',10 );
define( 'DEVELOPMENT_PENDING',20 );
define( 'DEVELOPMENT_IN_PROGRESS',30 );
define( 'QA_PENDING',40 );
define( 'QA_IN_PROGRESS',50 );
define( 'RETURN_TO_DEVELOPMENT',60 );
define( 'QA_COMPLETED',70 );
define( 'DEPLOYED_TO_PRODUCTION',80 );
define( 'CLOSED',90 );

当我加载一张票时,我只看到“return_to_development”和“qa_completed”发生了变化,其余的字符串仍然是旧的。这两个是唯一的新状态代码,所以我不确定如何让系统识别我更改了原始状态代码? 同样在工作流转换页面中,新的被列为“@60@ @70@”,其余的仍然具有旧名称。就像它没有拿起 custom_constants_inc.PHP 一样?

提前致谢。

解决方法

好的,我想通了。我错过了我需要在 custom_strings_inc.php 中定义“$s_status_enum_string = ...”