diff --git a/htdocs/opensurvey/card.php b/htdocs/opensurvey/card.php
index fd9fa3e0456..40e9d14adca 100644
--- a/htdocs/opensurvey/card.php
+++ b/htdocs/opensurvey/card.php
@@ -251,18 +251,6 @@ if ($action == 'edit') {
}
print '';
-// EMail
-//If linked user, then emails are going to be sent to users' email
-if (!$object->fk_user_creat) {
- print '
| '.$langs->trans("EMail").' | ';
- if ($action == 'edit') {
- print '';
- } else {
- print dol_print_email($object->mail_admin, 0, 0, 1);
- }
- print ' |
';
-}
-
// Receive an email with each vote
print '| '.$langs->trans('ToReceiveEMailForEachVote').' | ';
if ($action == 'edit') {
@@ -312,10 +300,14 @@ print ' |
';
// Author
print '| ';
print $langs->trans("Author").' | ';
-if ($object->fk_user_creat) {
+if ($object->fk_user_creat > 0) {
print $userstatic->getLoginUrl(1);
} else {
- print dol_htmlentities($object->nom_admin);
+ if ($action == 'edit') {
+ print '';
+ } else {
+ print dol_print_email($object->mail_admin, 0, 0, 1);
+ }
}
print ' |
';
diff --git a/htdocs/opensurvey/wizard/create_survey.php b/htdocs/opensurvey/wizard/create_survey.php
index 30e662be7ea..6ed1f2073d2 100644
--- a/htdocs/opensurvey/wizard/create_survey.php
+++ b/htdocs/opensurvey/wizard/create_survey.php
@@ -170,7 +170,7 @@ if ($_SESSION["mailsonde"]) {
$cochemail = "checked";
}
-print ' '.$langs->trans("ToReceiveEMailForEachVote").'
'."\n";
+print '
'."\n";
if ($_SESSION['allow_comments']) {
$allow_comments = 'checked';
@@ -178,7 +178,7 @@ if ($_SESSION['allow_comments']) {
if (GETPOSTISSET('allow_comments')) {
$allow_comments = GETPOST('allow_comments') ? 'checked' : '';
}
-print ' '.$langs->trans('CanComment').'
'."\n";
+print '
'."\n";
if ($_SESSION['allow_spy']) {
$allow_spy = 'checked';
@@ -186,7 +186,7 @@ if ($_SESSION['allow_spy']) {
if (GETPOSTISSET('allow_spy')) {
$allow_spy = GETPOST('allow_spy') ? 'checked' : '';
}
-print ' '.$langs->trans('CanSeeOthersVote').'
'."\n";
+print '
'."\n";
if (GETPOST('choix_sondage')) {
if (GETPOST('choix_sondage') == 'date') {