diff --git a/helfi_tpr.install b/helfi_tpr.install index d931757d..1a2cee0c 100644 --- a/helfi_tpr.install +++ b/helfi_tpr.install @@ -675,9 +675,6 @@ function helfi_tpr_update_8038() : void { ->setDisplayConfigurable('view', TRUE) ->setDisplayOptions('form', [ 'type' => 'readonly_field_widget', - ]) - ->setDisplayOptions('view', [ - 'type' => 'readonly_field_widget', ]); foreach ($fields as $name => $field) { diff --git a/src/Entity/OntologyWordDetails.php b/src/Entity/OntologyWordDetails.php index 667f8335..8d74628b 100644 --- a/src/Entity/OntologyWordDetails.php +++ b/src/Entity/OntologyWordDetails.php @@ -113,9 +113,6 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type): a ->setDisplayConfigurable('view', TRUE) ->setDisplayOptions('form', [ 'type' => 'readonly_field_widget', - ]) - ->setDisplayOptions('view', [ - 'type' => 'readonly_field_widget', ]); return $fields;