Project

General

Profile

Defect #44431

Updated by Holger Just 18 days ago

while using @@@ `@` for the user mention, redmine can't match input after @@@ @ to a real user if number numer of project users is significant 

 main reason is that there is a logic flaw 

 WatchersController is defining @users_for_mention@ `users_for_mention` method 

 logic is: 
 <pre><code class="ruby"> ``` 
     if params[:q].blank? && @project.present? 
       scope = @project.principals.assignable_watchers.limit(100) 
     else 
       scope = Principal.assignable_watchers.limit(10) 
     end 
 </code></pre> 


 ``` 

 that mean if you press @@@ `@` in the issue text editor, first 10 users are being selected and then query filter is applied, so if you user is 11th on a list - there sill be an empty list 

 I suggest to not limit @scope@ `scope` there, but after matching users to a query 

Back