mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +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
|
||||
{
|
||||
&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_TO'}{$outfwsettings{'TIME_TO'}} = "selected='selected'";
|
||||
print <<END
|
||||
|
||||
Reference in New Issue
Block a user