Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions src/Controller/Component/PropertiesComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public function viewGroups(array $object, string $type): array
$keep = (array)$this->getConfig(sprintf('Properties.%s.view._keep', $type), []);
$hide = (array)$this->getConfig(sprintf('Properties.%s.view._hide', $type), []);
$attributes = array_merge(array_fill_keys($keep, ''), (array)Hash::get($object, 'attributes'));
$attributes = array_merge($attributes, (array)Hash::get($object, 'meta', []));
$attributes = array_diff_key($attributes, array_flip($this->excluded));
$attributes = array_diff_key($attributes, array_flip($hide));
$defaults = array_merge($this->getConfig(sprintf('Properties.%s.view', $type), []), $this->defaultGroups['view']);
Expand Down
2 changes: 2 additions & 0 deletions templates/Element/Form/group_properties.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
{% elseif locked and key == 'status' %}
{{ Property.control(key, value, {'disabled': 'disabled'})|raw }}
<input type="hidden" name="status" id="status" value="{{ value }}" />
{% elseif key in object.meta|keys %}
{{ Property.control(key, value, {'disabled': true, 'readonly': true})|raw }}
{% else %}
{{ Property.control(key, value)|raw }}
{% if schema.properties[key].placeholders %}
Expand Down
Loading