Skip to content

Commit 1192899

Browse files
authored
ignore mail params with empty data in csv export (#465)
1 parent 0be1a0c commit 1192899

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

UPGRADE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- **[SECURITY FEATURE]** Add [friendly captcha field](/docs/03_SpamProtection.md#friendly-captcha)
55
- **[SECURITY FEATURE]** Add [cloudflare turnstile](/docs/03_SpamProtection.md#cloudflare-turnstile)
66
- **[BUGFIX]** Use Pimcore AdminUserTranslator for Editable Dialog Box [#450](https://github.com/dachcom-digital/pimcore-formbuilder/issues/450)
7+
- **[BUGFIX]** CSV Export: Ignore mail params with empty data [#461](https://github.com/dachcom-digital/pimcore-formbuilder/issues/461)
78
- **[IMPROVEMENT]** Improve json response success message behaviour [#416](https://github.com/dachcom-digital/pimcore-formbuilder/issues/416)
89
- **[IMPROVEMENT]** [#458](https://github.com/dachcom-digital/pimcore-formbuilder/pull/458)
910
- Allow to modify FormType options via `FORM_TYPE_OPTIONS` event

src/Controller/Admin/ExportController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ private function extractMailParams(Email\Log $log, FormDefinitionInterface $form
229229
}
230230
}
231231

232+
if (!array_key_exists('data', $mailParam)) {
233+
continue;
234+
}
235+
232236
if (!in_array($displayKeyName, $mailHeader, true)) {
233237
$mailHeader[] = $displayKeyName;
234238
}

0 commit comments

Comments
 (0)