Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 302749

Notice: Undefined index: uid in simple a user view

$
0
0

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

  1. Add a user view
  2. Remove the default filter (the anonymous one)
  3. Edit the username field, and uncheck both 'Link this field to the user', and 'Use formatted username'
  4. Save the field, see the notice in the view preview


Proposed resolution

Remaining tasks

User interface changes

API changes

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue categoryBug because PHP notice
Unfrozen changesUnfrozen because it only changes the code to not throw PHP notices

Viewing all articles
Browse latest Browse all 302749

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>