Multiple unassignment

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
Asura
Posts: 8
Joined: Jan 08, 2019 9:00 am

Multiple unassignment

Post by Asura » Sep 30, 2019 3:32 am

Hi,

I have a problem, my need is to be able to unassign tickets by the multiple selection, i've seen it to be possible to reassign to no one for just one ticket a time with standard editing like this :
Image

and i tried by modifiying "bug_actiongroup_page.php" and adding an

Code: Select all

echo '<option value="0"></option>';
just before the function, just like this :

Code: Select all

case 'ASSIGN':
	echo '<option value="0"></option>';
	print_assign_to_option_list( 0, $t_project_id );
	break;
it somehow managed to make the list look like the other one in the standard editing :
Image

but whenever i try to assign the ticket to this null option i get this error message :
Image

Do someone know either how to fix this or how to make it happen in another way?

Best regards.
MantisBT Version 2.8.0.209
PHP Version 7.0.24
MySQL Version 5.7.20
Running on Windows Server 2012 R2

cas
Posts: 669
Joined: Mar 11, 2006 11:08 am
Contact:

Re: Multiple unassignment

Post by cas » Sep 30, 2019 7:05 am

I would suggest to add an option "UnAssign" , see the notes on custom_group_actions within config_defaults_inc.php.
This way you ensure there is no need to change standard programs.

TerranceM
Posts: 11
Joined: Aug 27, 2019 8:55 am
Location: USA
Contact:

Re: Multiple unassignment

Post by TerranceM » Nov 08, 2019 6:13 am

Adding "UnAssign" option will work for you. Changing the default program can rellay prove risky.

Post Reply