Skip to content

Commit

Permalink
IBX-6559: Fixed ezmatrix field form inconsistencies in Content Type…
Browse files Browse the repository at this point in the history
… form
  • Loading branch information
barw4 committed Nov 23, 2023
1 parent e5208ff commit 96a23ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/bundle/Resources/translations/matrix_fieldtype.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@
<target state="new">Columns</target>
<note>key: field.columns</note>
</trans-unit>
<trans-unit id="207b1ea4ef32f10b29a4cff6869126da1f4b980a" resname="field_definition.ezmatrix.columns">
<source>Columns</source>
<target state="new">Columns</target>
<note>key: field_definition.ezmatrix.columns</note>
</trans-unit>
<trans-unit id="07c51cf854c53ebcc11d9261c7ca5b0772d7f7a4" resname="field_definition.ezmatrix.minimum_rows">
<source>Minimum number of rows</source>
<target state="new">Minimum number of rows</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
body_rows,
table_body_attr: {
'data-next-index': form.columns.children|length ? max(form.columns.children|keys) + 1 : 0,
}
},
show_head_cols_if_empty: true
} %}
{% block header %}
{% embed '@ibexadesign/ui/component/table/table_header.html.twig' %}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/FieldType/Mapper/MatrixFormMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function mapFieldDefinitionForm(FormInterface $fieldDefinitionForm, Field
'prototype_name' => '__number__',
'required' => false,
'property_path' => 'fieldSettings[columns]',
'label' => /** @Desc("Columns") */ 'field_definition.ezmatrix.columns',
'label' => false,
'translation_domain' => 'matrix_fieldtype',
'disabled' => $isTranslation,
]);
Expand Down

0 comments on commit 96a23ff

Please sign in to comment.