From 9df2c4d30763078f68083f8899ebbd1b313198af Mon Sep 17 00:00:00 2001 From: Marcel Diegelmann Date: Wed, 17 Sep 2025 09:03:52 +0200 Subject: [PATCH] =?UTF-8?q?PDF=20Exportm=C3=B6glichkeit=20zun=C3=A4chst=20?= =?UTF-8?q?nur=20anzeigen,=20wenn=20es=20sich=20um=20ein=20Assembly=20hand?= =?UTF-8?q?elt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ImportExportSystem/EntityExporter.php | 2 +- templates/admin/_export_form.html.twig | 30 +++++++++++++------ 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/src/Services/ImportExportSystem/EntityExporter.php b/src/Services/ImportExportSystem/EntityExporter.php index d1fb6cda..1dbdaaf4 100644 --- a/src/Services/ImportExportSystem/EntityExporter.php +++ b/src/Services/ImportExportSystem/EntityExporter.php @@ -274,7 +274,7 @@ class EntityExporter $options['format'] = 'csv'; $options['level'] = 'readable'; - } if ($request->get('readableSelect', false) === 'readable_bom') { + } elseif ($request->get('readableSelect', false) === 'readable_bom') { $hierarchies = []; foreach ($entities as $entity) { diff --git a/templates/admin/_export_form.html.twig b/templates/admin/_export_form.html.twig index 4810f67f..b02d4a8e 100644 --- a/templates/admin/_export_form.html.twig +++ b/templates/admin/_export_form.html.twig @@ -34,16 +34,28 @@ -
- -
- + {% if path is defined and 'assembly' in path %} +
+ +
+ +
-
+ {% else %} +
+ +
+ + +
+
+ {% endif %}