add hidden field without value to checkboxes

This commit is contained in:
Uwe Steinmann 2025-04-02 08:08:37 +02:00
parent 4f3e6cadf5
commit 073948d4c3

View File

@ -189,9 +189,10 @@ class SeedDMS_View_Settings extends SeedDMS_Theme_Style {
<td><?= getMLText($title) ?></td> <td><?= getMLText($title) ?></td>
<td> <td>
<?php <?php
if($this->isVisible($name)) if($this->isVisible($name)) {
echo '<input name="'.$name.'" type="hidden" vaule="" />';
echo '<input name="'.$name.'" type="checkbox" '.($settings->{"_".$name} ? "checked" : '').' />'; echo '<input name="'.$name.'" type="checkbox" '.($settings->{"_".$name} ? "checked" : '').' />';
else } else
echo getMLText('settings_conf_field_not_editable'); echo getMLText('settings_conf_field_not_editable');
echo "</td>\n"; echo "</td>\n";
?> ?>