summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-05-04 15:56:55 +0000
committerErmal <eri@pfsense.org>2010-05-04 15:57:24 +0000
commit96cbc5aa79398f0e1dba04a1d487f9425315b60d (patch)
tree00d81fc504d926a1d9e37261d4bb1a139f493d92 /etc
parent156a7868ba2acafc803318e575b1a1b9ca222fba (diff)
downloadpfsense-96cbc5aa79398f0e1dba04a1d487f9425315b60d.zip
pfsense-96cbc5aa79398f0e1dba04a1d487f9425315b60d.tar.gz
Fix displaying the Enable/Disable checkbox. Previously after a save button click it will show the old saved value.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/shaper.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index 80303a3..dd2c072 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -3355,8 +3355,8 @@ class layer7 {
$form = "<tr><td valign=\"top\" class=\"vncellreq\"><br>";
$form .= "Enable/Disable";
$form .= "</td><td class=\"vncellreq\">";
- $form .= " <input type=\"checkbox\" id=\"enabled\" name=\"enabled\"";
- if ($this->GetREnabled()) {
+ $form .= " <input type=\"checkbox\" id=\"enabled\" name=\"enabled\" value=\"on\" ";
+ if ($this->GetREnabled() == "on") {
$form .= "checked = \"CHECKED\"";
}
$form .= " ><span class=\"vexpl\"> Enable/Disable layer7 Container</span>";
OpenPOWER on IntegriCloud