From: vincent@cubedesigners.com Date: Tue, 13 Sep 2016 13:48:32 +0000 (+0000) Subject: fix #733 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5c4042298d73a84edfb4dd28780d9f31412fc7b6;p=cubeextranet.git fix #733 @0.5 --- diff --git a/inc/ws/Controlleur/class.ws.ajax.php b/inc/ws/Controlleur/class.ws.ajax.php index 2ed8b8c31..db32842e8 100644 --- a/inc/ws/Controlleur/class.ws.ajax.php +++ b/inc/ws/Controlleur/class.ws.ajax.php @@ -539,7 +539,9 @@ class wsAjax extends cubeAjax { 'nombre_liens' => 'Liens', 'nombre_pages' => 'Pages', 'nombre_langues' => 'Langues', - 'detail' => 'Commentaires'); + 'contact_type' => 'Type de client', + 'detail' => 'Commentaires', + ); $mail = new cubeMail(); $mail->charset = 'UTF-8'; $mail->from = $_POST['prenom'] . ' ' . $_POST['nom'] . '<' . $_POST['email'] . '>'; @@ -562,7 +564,12 @@ class wsAjax extends cubeAjax { $mail->body = $body; $mail->send(); + if (isset($_POST['lang'])) { + cubeLang::set($_POST['lang']); + } + $x->addAlert(__("Votre demande de devis a bien été envoyée. Merci pour l'intérêt que vous portez à Fluidbook.")); + cubeLang::set(LANG); $core->refreshWSUsersTree(); }