From 5f4bf5fb0ac5aa3e613d29ba60bf365643c6efd7 Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Thu, 21 Jan 2016 00:52:36 +0100 Subject: firewall_rules_edit, load advanced settings flags-any and sloppy-state back into webgui --- src/usr/local/www/firewall_rules_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index 8a7a046..c0d2042 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -966,7 +966,7 @@ function build_flag_table() { $flagtable .= ""; $flagtable .= ''; + $flagtable .= ($pconfig['tcpflags_any'] ? 'checked':'') . '/>'; $flagtable .= '' . gettext(" Any flags.") . ''; return($flagtable); @@ -1505,7 +1505,7 @@ $section->addInput(new Form_Checkbox( $section->addInput(new Form_Select( 'statetype', 'State type', - (isset($pconfig['statetype'])) ? "keep state":$pconfig['statetype'], + (isset($pconfig['statetype'])) ? $pconfig['statetype'] : "keep state", array( 'keep state' => gettext('Keep'), 'sloppy state' => gettext('Sloppy'), -- cgit v1.1