Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b2c250

Browse files
committed
minor EasyCorp#3610 decouples collection row from ea field (sbyshyp)
This PR was merged into the 3.0.x-dev branch. Discussion ---------- decouples collection row from ea field Adds a check to make sure ea_field exist before checking for the entryIsComplex value. If not, defaults to false. closes EasyCorp#3528 Commits ------- c42a789 decouples collection row from ea field
2 parents ff35381 + c42a789 commit 2b2c250

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Resources/views/crud/form_theme.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114

115115
{% set row_attr = row_attr|merge({
116116
'data-ea-collection-field': 'true',
117-
'data-entry-is-complex': form.vars.ea_crud_form.ea_field.customOptions.get('entryIsComplex') ? 'true' : 'false',
117+
'data-entry-is-complex': form.vars.ea_crud_form.ea_field and form.vars.ea_crud_form.ea_field.customOptions.get('entryIsComplex') ? 'true' : 'false',
118118
'data-allow-add': allow_add ? 'true' : 'false',
119119
'data-allow-delete': allow_delete ? 'true' : 'false',
120120
'data-num-items': form.children|length,

0 commit comments

Comments
 (0)