diff --git a/plugins/AttachmentCollections/AttachmentCollections.php b/plugins/AttachmentCollections/AttachmentCollections.php index 2969f7b3f5..4da2a08e95 100644 --- a/plugins/AttachmentCollections/AttachmentCollections.php +++ b/plugins/AttachmentCollections/AttachmentCollections.php @@ -212,9 +212,9 @@ class AttachmentCollections extends Plugin $res[] = Formatting::twigRenderFile( 'AttachmentCollections/widget.html.twig', [ - 'colls' => $colls, - 'add_form' => $add_form->createView(), - 'create_form' => $create_form->createView(), + 'has_collections' => $colls, + 'add_form' => $add_form->createView(), + 'create_form' => $create_form->createView(), ], ); return Event::next; diff --git a/plugins/AttachmentCollections/templates/AttachmentCollections/widget.html.twig b/plugins/AttachmentCollections/templates/AttachmentCollections/widget.html.twig index cbd3f1c93d..ae32110f9d 100644 --- a/plugins/AttachmentCollections/templates/AttachmentCollections/widget.html.twig +++ b/plugins/AttachmentCollections/templates/AttachmentCollections/widget.html.twig @@ -4,19 +4,25 @@