Some zone_field callers just expect a single value

This commit is contained in:
Jamie Cameron
2026-08-03 15:10:21 -07:00
parent 1b69837817
commit 6e558b91bf

View File

@@ -414,7 +414,8 @@ if ($other) {
elsif (!$found) {
push(@opts, [ $value, $value ]);
}
return (&ui_select($name, $value, \@opts), $found);
my $sel = &ui_select($name, $value, \@opts);
return wantarray ? ($sel, $found) : $sel;
}
# iface_field(name, value)