summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-08 19:29:51 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-08 19:29:51 +0000
commitc7a121882a1356ac604ee1b525cfb7134d5668b2 (patch)
tree976493a90c6586fdd2d62d1788168017031b8ea5 /usr/local
parent45a636478b30ef5e9c0666ea3ad0617a8815d57f (diff)
downloadpfsense-c7a121882a1356ac604ee1b525cfb7134d5668b2.zip
pfsense-c7a121882a1356ac604ee1b525cfb7134d5668b2.tar.gz
Set value to ON when checked.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/pkg_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index 05c07ab..0091f74 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -591,9 +591,9 @@ function display_row($trc, $value, $fieldname, $type, $rowhelper, $size) {
echo "<input size='" . $size . "' name='" . $fieldname . $trc . "' value='" . $value . "'>\n";
} else if($type == "checkbox") {
if($value)
- echo "<input size='" . $size . "' type='checkbox' name='" . $fieldname . $trc . "' value='" . $value . "' CHECKED>\n";
+ echo "<input size='" . $size . "' type='checkbox' name='" . $fieldname . $trc . "' value='ON' CHECKED>\n";
else
- echo "<input size='" . $size . "' type='checkbox' name='" . $fieldname . $trc . "' value='" . $value . "'>\n";
+ echo "<input size='" . $size . "' type='checkbox' name='" . $fieldname . $trc . "' value='ON'>\n";
} else if($type == "password") {
echo "<input size='" . $size . "' type='password' name='" . $fieldname . $trc . "' value='" . $value . "'>\n";
} else if($type == "textarea") {
OpenPOWER on IntegriCloud