Multiple assign doesn't work in mantis 1.1.1

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
nla
Posts: 3
Joined: 03 Sep 2007, 12:43

Multiple assign doesn't work in mantis 1.1.1

Post by nla »

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 8O
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 ) {
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:

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) ) {
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
Post Reply