Multiple unassignment

General discussion of Mantis.

Moderators: Developer, Contributor

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

Multiple unassignment

Post by Asura »

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: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Multiple unassignment

Post by cas »

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: 26
Joined: 27 Aug 2019, 13:55
Location: USA

Re: Multiple unassignment

Post by TerranceM »

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