I've recently migrate from mantis 0.7 to 1.1.1.
What a surprise when my user told that they couldn't assign multiple bugs to a person.
After verification, I've notice that it is possible to assign a bug but not to several bugs
Indeed when doing that, mantis shows the next message: "This issue cannot be changed to the requested status"
I've check the source code and identifed that the problem is coming from function bug_check_workflow in bug_api.php file.
In the code:
Code: Select all
function bug_check_workflow( $p_bug_status, $p_wanted_status ) {
$t_status_enum_workflow = config_get( 'status_enum_workflow' );
if ( count( $t_status_enum_workflow ) < 1 ) {But what is really strange, is that when printing count( $t_status_enum_workflow ) I can see that instead of having O, I've got 1 which is absolutely wrong because $t_status_enum_workflow is an empty array!!!!
So I've modified the previous code as this:
Code: Select all
function bug_check_workflow( $p_bug_status, $p_wanted_status ) {
$t_status_enum_workflow = config_get( 'status_enum_workflow' );
if ( count( $t_status_enum_workflow ) < 1 || empty($t_status_enum_workflow) ) {thanks for any idea.
Nla