Updated: Comment #N
Problem/Motivation
Simple user views without field formatting on the username field result in the following error message:
Notice: Undefined index: uid in Drupal\views\Plugin\views\field\FieldPluginBase->getValue() (line 393 of core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php).
To reproduce
- Add a user view
- Remove the default filter (the anonymous one)
- Edit the username field, and uncheck both 'Link this field to the user', and 'Use formatted username'
- Save the field, see the notice in the view preview
Proposed resolution
Remaining tasks
User interface changes
API changes
Related Issues
Beta phase evaluation
Issue category | Bug because PHP notice |
---|---|
Unfrozen changes | Unfrozen because it only changes the code to not throw PHP notices |