From 5def761ef5359ab69ae28073cf234c6cb3ef08f3 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Tue, 26 Jul 2022 22:38:39 +0200 Subject: [PATCH] Fix unreachable create_snapshots field --- src/Admin/SiteAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Admin/SiteAdmin.php b/src/Admin/SiteAdmin.php index a65dd3f01..3ab0d6ae4 100644 --- a/src/Admin/SiteAdmin.php +++ b/src/Admin/SiteAdmin.php @@ -73,7 +73,7 @@ protected function configureListFields(ListMapper $list): void ->add('locale') ->add('enabledFrom') ->add('enabledTo') - ->add('create_snapshots', 'string', ['template' => '@SonataPage/SiteAdmin/list_create_snapshots.html.twig']); + ->add('create_snapshots', 'string', ['template' => '@SonataPage/SiteAdmin/list_create_snapshots.html.twig', 'virtual_field' => true]); } protected function configureDatagridFilters(DatagridMapper $filter): void