Closed (fixed)
Project:
Drupal core
Version:
8.1.x-dev
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2016 at 12:31 UTC
Updated:
24 Mar 2017 at 09:17 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vasikeindeed. there is an issue for the UserSelection's EntityReferenceSelection plugin.
This plugin works for the autocomplete widget as there is name column involved and "Anonymous" has no name.
So actually the issue here is that the buildEntityQuery does not Exclude Anonymous user, if "not included".
and here is patch for this.
p.s. moved to 8.1.x
Comment #3
vasikeComment #4
amateescu commentedThis bug occurs because the select list widgets do not filter by the label column like the autocomplete one does, and in #2434697: Remove UserAutocompleteController we forgot to add tests for this case. Here's a small test for that.
The fix makes sense. I just made a small cosmetic change in there, so moving straight to RTBC.
Comment #5
amateescu commentedOops :)
Comment #6
joachim commentedDoes this need tests?
Comment #7
amateescu commentedIt does and I added them in #4 :)
Comment #9
amateescu commentedAnd they fail/pass as expected.
Comment #10
catchCommitted/pushed to 8.2.x and cherry-picked to 8.1.x. Thanks!
Comment #14
rosinegrean commented