Mailsonde Opensurvey function can now be modified
This commit is contained in:
parent
57a18ba4af
commit
11dc75686f
@ -89,6 +89,7 @@ if ($action == 'update')
|
|||||||
$object->canedit = GETPOST('canedit')=='on'?1:0;
|
$object->canedit = GETPOST('canedit')=='on'?1:0;
|
||||||
$object->allow_comments = GETPOST('cancomment') == 'on' ? true : false;
|
$object->allow_comments = GETPOST('cancomment') == 'on' ? true : false;
|
||||||
$object->allow_spy = GETPOST('canseeothersvote') == 'on' ? true : false;
|
$object->allow_spy = GETPOST('canseeothersvote') == 'on' ? true : false;
|
||||||
|
$object->mailsonde = GETPOST('mailsonde') == 'on' ? true : false;
|
||||||
|
|
||||||
$res=$object->update($user);
|
$res=$object->update($user);
|
||||||
if ($res < 0)
|
if ($res < 0)
|
||||||
@ -222,6 +223,15 @@ if ($action == 'edit')
|
|||||||
else print dol_print_email($object->mail_admin);
|
else print dol_print_email($object->mail_admin);
|
||||||
print '</td></tr>';
|
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
|
// Can edit other votes
|
||||||
print '<tr><td>'.$langs->trans('CanEditVotes').'</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans('CanEditVotes').'</td><td colspan="2">';
|
||||||
if ($action == 'edit')
|
if ($action == 'edit')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user