Multiple assign doesn't work in mantis 1.1.1
Posted: 10 Jun 2008, 10:27
Hello all!
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:
when I print $t_status_enum_workflow, I can see that it is empty which is normal because in config_defaults_inc.php file I've got : $g_status_enum_workflow = array();
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:
Now my users can assign multiple bugs without any trouble ... but still I'm wondering if I'm alone to have this issue?
thanks for any idea.
Nla
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