Merge pull request #3474 from aspangaro/3.8-16
Fix Problem with checked input when you edit a survey
This commit is contained in:
commit
3ae19375cd
@ -646,7 +646,7 @@ else
|
|||||||
print '<td colspan="2"><label for="birthday_alert">'.$langs->trans("Alert").'</label>: ';
|
print '<td colspan="2"><label for="birthday_alert">'.$langs->trans("Alert").'</label>: ';
|
||||||
if ($object->birthday_alert)
|
if ($object->birthday_alert)
|
||||||
{
|
{
|
||||||
print '<input type="checkbox" name="birthday_alert" id="birthday_aler" checked></td>';
|
print '<input type="checkbox" name="birthday_alert" id="birthday_alert" checked></td>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -248,7 +248,7 @@ if (!$object->fk_user_creat) {
|
|||||||
print '<tr><td>'.$langs->trans('ToReceiveEMailForEachVote').'</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans('ToReceiveEMailForEachVote').'</td><td colspan="2">';
|
||||||
if ($action == 'edit')
|
if ($action == 'edit')
|
||||||
{
|
{
|
||||||
print '<input type="checkbox" name="mailsonde" size="40"'.($object->mailsonde?' checked':'').'">';
|
print '<input type="checkbox" name="mailsonde" '.($object->mailsonde?'checked="checked"':'').'">';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print yn($object->mailsonde);
|
print yn($object->mailsonde);
|
||||||
@ -266,7 +266,7 @@ print '</td></tr>';
|
|||||||
print '<tr><td>'.$langs->trans('CanComment').'</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans('CanComment').'</td><td colspan="2">';
|
||||||
if ($action == 'edit')
|
if ($action == 'edit')
|
||||||
{
|
{
|
||||||
print '<input type="checkbox" name="cancomment" size="40"'.($object->allow_comments?' checked':'').'">';
|
print '<input type="checkbox" name="cancomment" '.($object->allow_comments?'checked="checked"':'').'">';
|
||||||
}
|
}
|
||||||
else print yn($object->allow_comments);
|
else print yn($object->allow_comments);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
@ -275,7 +275,7 @@ print '</td></tr>';
|
|||||||
print '<tr><td>'.$langs->trans('CanSeeOthersVote').'</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans('CanSeeOthersVote').'</td><td colspan="2">';
|
||||||
if ($action == 'edit')
|
if ($action == 'edit')
|
||||||
{
|
{
|
||||||
print '<input type="checkbox" name="canseeothersvote" size="40"'.($object->allow_spy?' checked':'').'">';
|
print '<input type="checkbox" name="canseeothersvote" '.($object->allow_spy?'checked="checked"':'').'">';
|
||||||
}
|
}
|
||||||
else print yn($object->allow_spy);
|
else print yn($object->allow_spy);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user