diff --git a/core/modules/user/src/Plugin/views/filter/Roles.php b/core/modules/user/src/Plugin/views/filter/Roles.php index 702848f1da..a6986f2257 100644 --- a/core/modules/user/src/Plugin/views/filter/Roles.php +++ b/core/modules/user/src/Plugin/views/filter/Roles.php @@ -79,9 +79,10 @@ public function calculateDependencies() { return $dependencies; } - // Due to a bug $this->value might be a string, see - // https://www.drupal.org/node/2846614. In the empty case stop early. - // Otherwise we cast it to an array later. + // The value might be a string due to the wrong plugin being used for role + // field data, and subsequently the incorrect config schema object and + // value. In the empty case stop early. Otherwise we cast it to an array + // later. if (is_string($this->value) && $this->value === '') { return []; }