mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
Fix to always default to fast mode
https://github.com/webmin/webmin/issues/2458#issuecomment-2818513756
This commit is contained in:
@ -124,14 +124,14 @@ if ($access{'forcefast'}) {
|
|||||||
: $s->{'fast'});
|
: $s->{'fast'});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($in{'new'} || $s->{'fast'} == 2) {
|
if (($in{'new'} && $config{'deffast'} != 1) || $s->{'fast'} == 2) {
|
||||||
print &ui_table_row($text{'edit_fast'},
|
print &ui_table_row($text{'edit_fast'},
|
||||||
&ui_radio("fast", $config{'deffast'},
|
&ui_radio("fast", $config{'deffast'},
|
||||||
[ [ 1, $text{'yes'} ],
|
[ [ 1, $text{'yes'} ],
|
||||||
[ 2, $text{'edit_auto'} ],
|
[ 2, $text{'edit_auto'} ],
|
||||||
[ 0, $text{'no'} ] ]));
|
[ 0, $text{'no'} ] ]));
|
||||||
}
|
}
|
||||||
else {
|
elsif (!$in{'new'} && $s->{'fast'} != 1) {
|
||||||
print &ui_table_row($text{'edit_fast'},
|
print &ui_table_row($text{'edit_fast'},
|
||||||
&ui_radio("fast", int($s->{'fast'}),
|
&ui_radio("fast", int($s->{'fast'}),
|
||||||
[ [ 1, $text{'yes'} ],
|
[ [ 1, $text{'yes'} ],
|
||||||
|
@ -98,7 +98,7 @@ else {
|
|||||||
$serv->{'checkssl'} = $in{'checkssl'};
|
$serv->{'checkssl'} = $in{'checkssl'};
|
||||||
$serv->{'desc'} = $in{'desc_def'} ? undef : $in{'desc'};
|
$serv->{'desc'} = $in{'desc_def'} ? undef : $in{'desc'};
|
||||||
$serv->{'group'} = join("\t", @groups);
|
$serv->{'group'} = join("\t", @groups);
|
||||||
$serv->{'fast'} = $in{'fast'};
|
$serv->{'fast'} = $in{'fast'} // 1;
|
||||||
delete($serv->{'user'});
|
delete($serv->{'user'});
|
||||||
delete($serv->{'pass'});
|
delete($serv->{'pass'});
|
||||||
delete($serv->{'autouser'});
|
delete($serv->{'autouser'});
|
||||||
|
Reference in New Issue
Block a user