mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Fix selection of current shared network https://sourceforge.net/p/webadmin/bugs/4601/
This commit is contained in:
@@ -72,12 +72,12 @@ print "</td></tr>\n";
|
||||
if (!defined($in{'ret'})) {
|
||||
print "<tr><td valign=middle><b>$text{'esub_shnet'}</b></td>\n";
|
||||
print "<td valign=middle>";
|
||||
my @shn;
|
||||
push(@shn, [ "", "<$text{'esub_none'}>", ( $s_parent ? "" : "selected" ) ]);
|
||||
foreach $s (&find("shared-network", $conf)) {
|
||||
push(@shn, [ $s->{'index'}, ( &can('rw', \%access, $s) ? $s->{'values'}->[0] : "" ), ( $s eq $s_parent ? "" : "selected" ) ]);
|
||||
}
|
||||
print &ui_select("parent", undef, \@shn);
|
||||
my @shn;
|
||||
push(@shn, [ "", "<$text{'esub_none'}>" ]);
|
||||
foreach $s (&find("shared-network", $conf)) {
|
||||
push(@shn, [ $s->{'index'}, ( &can('rw', \%access, $s) ? $s->{'values'}->[0] : "" ) ]);
|
||||
}
|
||||
print &ui_select("parent", $s_parent ? $s_parent->{'index'} : "", \@shn);
|
||||
print "</td>\n";
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user