Commit 87d0f2c1 by Yvon Kerdoncuff

Merge branch '6697-contact-form-bug-after-ssagir-changes-fix' into 'develop'

only try to access contact form type field in presta self init and eval mode…

See merge request cooperatic/kohinos-tav!115
parents b03ad748 ba607cb2
...@@ -37,13 +37,15 @@ class ContactController extends AbstractController ...@@ -37,13 +37,15 @@ class ContactController extends AbstractController
$emailFrom = $form['email']->getData(); $emailFrom = $form['email']->getData();
$message = $form['message']->getData(); $message = $form['message']->getData();
$senderTypeAsSubjectSuffix = ''; $senderTypeAsSubjectSuffix = '';
switch ($form['type']) { if ($this->getParameter('tav_env') && $this->getParameter('presta_self_init_and_eval')) {
case 'prestataire_candidate': switch ($form['type']) {
$senderTypeAsSubjectSuffix = " d'un point de vente candidat"; case 'prestataire_candidate':
break; $senderTypeAsSubjectSuffix = " d'un point de vente candidat";
case 'adherent': break;
$senderTypeAsSubjectSuffix = " d'un adhérent"; case 'adherent':
break; $senderTypeAsSubjectSuffix = " d'un adhérent";
break;
}
} }
$this->sendMail($name, $emailFrom, $message, $senderTypeAsSubjectSuffix); $this->sendMail($name, $emailFrom, $message, $senderTypeAsSubjectSuffix);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment