Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/Plugin/views/filter/Selective.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,10 +457,12 @@ protected function getOids() {
$value = NULL;

if (NULL !== $entityTypeStorage) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not add the $key empty check to the condition above?

$entity = $entityTypeStorage->load($key);
if ($key) {
$entity = $entityTypeStorage->load($key);

if ($entity) {
$value = $entity->label();
if ($entity) {
$value = $entity->label();
}
}
}
else {
Expand Down