Skip to content

Commit

Permalink
Applied correction sugested on http://www.redmine.org/issues/4511#not…
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane LAPIE committed Jul 27, 2017
1 parent 7c1c52d commit 9514a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/watcher_groups_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def destroy
end

def autocomplete_for_group
@groups = Group.active.like(params[:q]).find(:all, :limit => 100)
@groups = Group.sorted.active.like(params[:q]).limit(100)
if @watched
@groups -= @watched.watcher_groups
end
Expand Down

0 comments on commit 9514a8d

Please sign in to comment.