Skip to content
Snippets Groups Projects
Commit 010d52a3 authored by Marc van Gend's avatar Marc van Gend Committed by Erik Stielstra
Browse files

Issue #2613144 by marcvangend: Field default value does not show in the block

parent e23e7745
No related branches found
No related tags found
No related merge requests found
......@@ -324,7 +324,7 @@ class FieldBlock extends BlockBase implements ContainerFactoryPluginInterface {
if ($entity instanceof ContentEntityInterface && $entity->getEntityTypeId() === $entity_type && $entity->hasField($this->configuration['field_name'])) {
$field = $entity->get($this->configuration['field_name']);
return AccessResult::allowedIf(!$field->isEmpty() && $field->access('view', $account));
return AccessResult::allowedIf($field->access('view', $account));
}
return AccessResult::forbidden();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment