MailForm possible values now maintains its order.
This commit is contained in:
parent
2811abaddf
commit
5c903b5c39
1 changed files with 2 additions and 1 deletions
|
|
@ -456,11 +456,12 @@ sub _createField {
|
|||
/^select$/ && do {
|
||||
# size, multiple, extras, subtext
|
||||
my %selectOptions;
|
||||
tie %selectOptions, 'Tie::IxHash';
|
||||
# add an empty option if no default value is provided
|
||||
foreach (split(/\n/, $data->{possibleValues})) {
|
||||
$selectOptions{$_} = $_[0]->processMacros($_);
|
||||
}
|
||||
$f->select($name, \%selectOptions, $data->{name}, [ $data->{defaultValue} ], "", "", "", "");
|
||||
$f->select($name, \%selectOptions, $data->{name}, [$data->{defaultValue}], "", "", "", "");
|
||||
last SWITCH;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue