Skip to content

Commit 18b8ce2

Browse files
jheimbachJohannes Heimbach
andauthored
use unique condition names in email export (#338)
Co-authored-by: Johannes Heimbach <j.heimbach@anymotion.de>
1 parent a1d41a0 commit 18b8ce2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FormBuilderBundle/Controller/Admin/ExportController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ public function exportFormEmailsAction(Request $request): Response
9595
}
9696

9797
$emailLogs = new Email\Log\Listing();
98-
$emailLogs->addConditionParam('params LIKE ?', sprintf('%%%s%%', $this->generateFormIdQuery($formId)));
98+
$emailLogs->addConditionParam('params LIKE :form', ['form' => sprintf('%%%s%%', $this->generateFormIdQuery($formId))]);
9999

100100
if ($filter !== 'all') {
101-
$emailLogs->addConditionParam('params LIKE ?', sprintf('%%%s%%', $this->generateOutputWorkflowFilterQuery($formId, (int) $filter)));
101+
$emailLogs->addConditionParam('params LIKE :workflow', ['workflow' => sprintf('%%%s%%', $this->generateOutputWorkflowFilterQuery($formId, (int) $filter))]);
102102
}
103103

104104
$response = new Response();

0 commit comments

Comments
 (0)