Skip to content

Commit

Permalink
Fix contact form send
Browse files Browse the repository at this point in the history
  • Loading branch information
pilot committed Aug 6, 2016
1 parent 0bcc926 commit 25bdb18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Event/EventBundle/Controller/EventController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function contactAction(Request $request)

$form = $this->createForm(ContactType::class);
if ($request->isMethod('POST') && $form->handleRequest($request)) {
if ($form->isValid() && $this->getSession()->get('captchaResult') == $request->request->get('calc')) {
if ($form->isValid() && $request->getSession()->get('captchaResult') == $request->request->get('calc')) {
$this->get('eventator_mailer')->send(
$event->getEmail(),
'Contact Request - '.$event->getTitle(),
Expand Down

0 comments on commit 25bdb18

Please sign in to comment.