Mailsonde Opensurvey function can now be modified

This commit is contained in:
Marcos García de La Fuente 2014-01-04 15:57:07 +01:00
parent 57a18ba4af
commit 11dc75686f

View File

@ -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 '</td></tr>';
// Receive an email with each vote
print '<tr><td>'.$langs->trans('ToReceiveEMailForEachVote').'</td><td colspan="2">';
if ($action == 'edit')
{
print '<input type="checkbox" name="mailsonde" size="40"'.($object->mailsonde?' checked="true"':'').'">';
}
else print yn($object->mailsonde);
print '</td></tr>';
// Can edit other votes
print '<tr><td>'.$langs->trans('CanEditVotes').'</td><td colspan="2">';
if ($action == 'edit')