Project 'cooperatic/kohinos-tav' was moved to 'agplv3/kohinos-tav'. Please update any links and bookmarks that may still have the old path.
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
$emailFrom = $form['email']->getData();
$message = $form['message']->getData();
$senderTypeAsSubjectSuffix = '';
switch ($form['type']) {
case 'prestataire_candidate':
$senderTypeAsSubjectSuffix = " d'un point de vente candidat";
break;
case 'adherent':
$senderTypeAsSubjectSuffix = " d'un adhérent";
break;
if ($this->getParameter('tav_env') && $this->getParameter('presta_self_init_and_eval')) {
switch ($form['type']) {
case 'prestataire_candidate':
$senderTypeAsSubjectSuffix = " d'un point de vente candidat";
break;
case 'adherent':
$senderTypeAsSubjectSuffix = " d'un adhérent";
break;
}
}
$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