mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +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'})) {
|
if (!defined($in{'ret'})) {
|
||||||
print "<tr><td valign=middle><b>$text{'esub_shnet'}</b></td>\n";
|
print "<tr><td valign=middle><b>$text{'esub_shnet'}</b></td>\n";
|
||||||
print "<td valign=middle>";
|
print "<td valign=middle>";
|
||||||
my @shn;
|
my @shn;
|
||||||
push(@shn, [ "", "<$text{'esub_none'}>", ( $s_parent ? "" : "selected" ) ]);
|
push(@shn, [ "", "<$text{'esub_none'}>" ]);
|
||||||
foreach $s (&find("shared-network", $conf)) {
|
foreach $s (&find("shared-network", $conf)) {
|
||||||
push(@shn, [ $s->{'index'}, ( &can('rw', \%access, $s) ? $s->{'values'}->[0] : "" ), ( $s eq $s_parent ? "" : "selected" ) ]);
|
push(@shn, [ $s->{'index'}, ( &can('rw', \%access, $s) ? $s->{'values'}->[0] : "" ) ]);
|
||||||
}
|
}
|
||||||
print &ui_select("parent", undef, \@shn);
|
print &ui_select("parent", $s_parent ? $s_parent->{'index'} : "", \@shn);
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user