It would be nice when adding users to the monitoring list of an issue, to be able to select them from a list instead of having to type the username blindly, particularly when Mantis is configured to display Realnames.

Hi dregad,
Thanks for updating the patch to work with 1.2.5 and later. I spent an hour trying to figure out how to apply the older patch to 1.2.7 before it occurred to me to check this ticket for an update. My team really likes thie feature!
Regards, Jeff

An alternate and maybe better way of implementing this feature could be to use the same code as proposed by daryn in 0012677:0028099 - it would at least avoid the code duplication from print_user_option_list (but only works in 1.3.x).

Thanks dregad for the help. I have no experience with .patch and I don't want to accidentally break my mantis install so I'm a bit cautious!

I ran the patch with the flags you suggested and got the error and output shown below. (I have rolled back the patch for the time being).

From googling it suggests manually patching the file with the details from the .rej file but I was unable to find "$t_users = array();" in my original file. I also downloaded mantis 1.2.19 and checked the same file there and also could not find that string.

@libregeek; I have tried the plugin but it says it needs MantisBt Core2.0.0 and I am using 1.3.5
How do I get it to work with 1.3.5. I am not very experienced with plugins so I am probably missing something obvious.

Hi again:
I'm sorry.
9.3.3 is the version of my Glpi :).
Our version of mantis is 2.9.0.
I understand that i can add a user for monitoring a issue using realname or username. That's great.
When you want to add a new user for monitoring, could you see the drop list of all users?

I am not using this functionality anymore - with a large number of users it becomes counterproductive to have a selection list vs typing the users' names in the field.

Anyway, here's an updated version of the patch. Note that this is against current dev-master (commit afb40dca79e54ff9c453d8bbe1b747c972e38f6f). NOTE: I did not test with older versions, and in fact it may not apply cleanly on 2.21.0 and older, because of changes introduced in 0025815.

Thanks so much for your patch. I think it should be integrated in the next version. The feature is really cool and expected.
I understand that it might be faster to type the login of the newly added user , but perhaps, you can consider to make it configurable

I'm not sure I get your point though - this is essentially the same UI as the one used in my patch, and suffers from the same problem and limitation I outlined in 0012557:0063868 (point 2). It is not an issue there, because the list of recipients for reminders is usually quite short as it's limited to developers by default, but if you take for example an instance like mantisbt.org where we have nearly 40'000 users with 99.9% of them being reporters, selection lists are simply not an option - just retrieving the data and having the browser render it can take several minutes.

The proper solution for this issue, as mentioned by @cathbis, is to use a text field with automatic completion.