%labels = ();
@values = ();
+ my $i = 0;
foreach my $item (@{ $form->{"ALL_CURRENCIES"} }) {
- push(@values, $item->{"currency"});
- $labels{$item->{"currency"}} = $item->{"currency"};
+ push(@values, $item);
+ $labels{$item} = $item;
}
$form->{currency} = $form->{defaultcurrency} unless $form->{currency};
%labels = ();
@values = ();
foreach my $item (@{ $form->{"ALL_CURRENCIES"} }) {
- push(@values, $item->{"currency"});
- $labels{$item->{"currency"}} = $item->{"currency"};
+ push(@values, $item);
+ $labels{$item} = $item;
}
$form->{currency} = $form->{defaultcurrency} unless $form->{currency};
%labels = ();
@values = ();
+ my $i = 0;
foreach my $item (@{ $form->{"ALL_CURRENCIES"} }) {
- push(@values, $item->{"currency"});
- $labels{$item->{"currency"}} = $item->{"currency"};
+ push(@values, $item);
+ $labels{$item} = $item;
}
$form->{currency} = $form->{defaultcurrency} unless $form->{currency};