diff --git a/htdocs/opensurvey/adminstuds.php b/htdocs/opensurvey/adminstuds.php index 9433ea6a250..32465058912 100644 --- a/htdocs/opensurvey/adminstuds.php +++ b/htdocs/opensurvey/adminstuds.php @@ -89,6 +89,7 @@ if ($action == 'update') $object->canedit = GETPOST('canedit')=='on'?1:0; $object->allow_comments = GETPOST('cancomment') == 'on' ? true : false; $object->allow_spy = GETPOST('canseeothersvote') == 'on' ? true : false; + $object->mailsonde = GETPOST('mailsonde') == 'on' ? true : false; $res=$object->update($user); if ($res < 0) @@ -222,6 +223,15 @@ if ($action == 'edit') else print dol_print_email($object->mail_admin); print ''; +// Receive an email with each vote +print ''.$langs->trans('ToReceiveEMailForEachVote').''; +if ($action == 'edit') +{ + print 'mailsonde?' checked="true"':'').'">'; +} +else print yn($object->mailsonde); +print ''; + // Can edit other votes print ''.$langs->trans('CanEditVotes').''; if ($action == 'edit')