From 987ed394dd91988a52ddf3d99e3e55971d19d487 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 20 Apr 2010 18:52:42 -0700 Subject: [PATCH] Do not make extra form variables available for latitude and longitude. --- lib/WebGUI/Asset/MapPoint.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/WebGUI/Asset/MapPoint.pm b/lib/WebGUI/Asset/MapPoint.pm index 961bfebfe..3edd31b96 100644 --- a/lib/WebGUI/Asset/MapPoint.pm +++ b/lib/WebGUI/Asset/MapPoint.pm @@ -304,6 +304,8 @@ sub getTemplateVarsEditForm { my $definition = __PACKAGE__->definition($session)->[0]->{properties}; for my $key ( keys %{$definition} ) { next if $definition->{$key}->{noFormPost}; + next if $key eq 'latitude' + || $key eq 'longitude'; $definition->{$key}->{name} = $key; $definition->{$key}->{value} = $self->getValue($key); $var->{ "form_$key" }