bug 1023: Regression: checkboxes have to have the value "1" because the
authorMichael Tänzer <neo@nhng.de>
Sun, 20 May 2012 17:02:29 +0000 (19:02 +0200)
committerMichael Tänzer <neo@nhng.de>
Sun, 20 May 2012 17:02:29 +0000 (19:02 +0200)
"controller" doesn't merely check if the attribute was set but also that it is
== 1

Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/wot.inc.php

index 2bb5553..663eff2 100644 (file)
@@ -573,7 +573,7 @@ function AssureBoxLine($type,$text,$checked)
 {
 ?>
        <tr>
-               <td class="DataTD"><input type="checkbox" name="<?=$type?>" <?=$checked?"checked":""?>></td>
+               <td class="DataTD"><input type="checkbox" name="<?=$type?>" value="1" <?=$checked?"checked":""?>></td>
                <td class="DataTD"><?=$text?></td>
        </tr>
 <?