diff --git a/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezimage.html.twig b/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezimage.html.twig index 7a16ba78ac..20fb91cdf8 100644 --- a/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezimage.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezimage.html.twig @@ -55,8 +55,8 @@ 'image-edit-actions-after', { 'fieldDefinitionIdentifier' : form.parent.vars.value.fieldDefinition.identifier, - 'contentId' : content_id|default(app.request.get('contentId')), - 'versionNo' : version_no|default(app.request.get('versionNo')), + 'contentId' : content_id ?? app.request.get('contentId'), + 'versionNo' : version_no ?? app.request.get('versionNo'), 'disabled': readonly ? true : false, } ) }} diff --git a/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezimageasset.html.twig b/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezimageasset.html.twig index 6ac777f371..647d903256 100644 --- a/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezimageasset.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezimageasset.html.twig @@ -145,8 +145,8 @@ 'image-edit-actions-after', { 'fieldDefinitionIdentifier' : form.parent.vars.value.fieldDefinition.identifier, - 'contentId' : content_id|default(app.request.get('contentId')), - 'versionNo' : version_no|default(app.request.get('versionNo')), + 'contentId' : content_id ?? app.request.get('contentId'), + 'versionNo' : version_no ?? app.request.get('versionNo'), 'disabled': readonly ? true : false, } ) }}