From 85d5eb99b77dbdd877b2ecd93467c26a598c679f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Sat, 22 Jun 2024 13:27:26 +0200 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Paweł Niedzielski --- .../views/themes/admin/ui/field_type/edit/ezimage.html.twig | 4 ++-- .../themes/admin/ui/field_type/edit/ezimageasset.html.twig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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, } ) }}