Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
306 views
in Technique[技术] by (71.8m points)

mantis custom status only changing new status when set?

so I followed the tutorial here https://www.mantisbt.org/docs/master/en-US/Admin_Guide/html/admin.customize.status.html In my config_inc.php I have

$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';

and in custom_constants_inc.php I have

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 );

When I load it a ticket I only see that "return_to_development" and "qa_completed" have changed, the rest of the string are still the old ones. And those 2 are the only NEW status codes, so I am not sure how to make the system recognize that I changed the original status codes? Also in the workflow transitions page the new ones are listed as "@60@ @70@ " and the rest still have the old names. Its like its not picking up custom_constants_inc.php?

Thank you in advance.

question from:https://stackoverflow.com/questions/65601797/mantis-custom-status-only-changing-new-status-when-set

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

ok I figured it out. I missed that I needed to define "$s_status_enum_string = ..." in the custom_strings_inc.php


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...