mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
outgoingfw.cgi: Fix enabled checkbox when editing rules.
When a rule was edited, the enabled checkbox was always unchecked. References bug #10022.
This commit is contained in:
@@ -631,7 +631,7 @@ END
|
|||||||
sub addrule
|
sub addrule
|
||||||
{
|
{
|
||||||
&Header::openbox('100%', 'center', $Lang::tr{'Add Rule'});
|
&Header::openbox('100%', 'center', $Lang::tr{'Add Rule'});
|
||||||
if ($outfwsettings{'EDIT'} eq 'no') { $selected{'ENABLED'} = 'checked'; }
|
if ($outfwsettings{'ENABLED'} eq 'on') { $selected{'ENABLED'} = 'checked'; }
|
||||||
$selected{'TIME_FROM'}{$outfwsettings{'TIME_FROM'}} = "selected='selected'";
|
$selected{'TIME_FROM'}{$outfwsettings{'TIME_FROM'}} = "selected='selected'";
|
||||||
$selected{'TIME_TO'}{$outfwsettings{'TIME_TO'}} = "selected='selected'";
|
$selected{'TIME_TO'}{$outfwsettings{'TIME_TO'}} = "selected='selected'";
|
||||||
print <<END
|
print <<END
|
||||||
|
|||||||
Reference in New Issue
Block a user