fixed #11220: Map asset badly broken

This commit is contained in:
Doug Bell 2009-11-10 12:08:08 -06:00
parent 858c148b2e
commit a182524fe9
2 changed files with 6 additions and 1 deletions

View file

@ -8,6 +8,7 @@
- fixed #11218: LDAPS does not create users automatically - fixed #11218: LDAPS does not create users automatically
- fixed #11205: DataTable borked in IE - fixed #11205: DataTable borked in IE
- fixed #11215: Los Angeles cannot be default timezone - fixed #11215: Los Angeles cannot be default timezone
- fixed #11220: Map asset badly broken
7.8.4 7.8.4
- Fixed a compatibility problem between WRE and new Spectre code. - Fixed a compatibility problem between WRE and new Spectre code.

View file

@ -468,8 +468,12 @@ ENDHTML
# Select box to choose a map point # Select box to choose a map point
tie my %selectPointOptions, 'Tie::IxHash', ( tie my %selectPointOptions, 'Tie::IxHash', (
"" => '-- ' . $i18n->get('select a point'), "" => '-- ' . $i18n->get('select a point'),
map { $_->{assetId} => $_->{title} } sort { $a->{title} cmp $b->{title} } @{$var->{mapPoints}},
); );
if ( $var->{mapPoints} ) {
for my $point ( sort { $a->{title} cmp $b->{title} } @{$var->{mapPoints}} ) {
$selectPointOptions{ $point->{assetId} } = $point->{title};
}
}
$var->{ selectPoint } $var->{ selectPoint }
= WebGUI::Form::selectBox( $session, { = WebGUI::Form::selectBox( $session, {
extras => q{onchange="WebGUI.Map.focusOn(this.options[this.selectedIndex].value);"}, extras => q{onchange="WebGUI.Map.focusOn(this.options[this.selectedIndex].value);"},