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

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

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