CMS MADE SIMPLE FORGE

CGGoogleMaps

 

[#8413] Save or edit a map point with lat/long will result in missing coordinates

avatar
Created By: blast blast (blast)
Date Submitted: Wed Sep 19 04:20:24 -0400 2012

Assigned To: Robert Campbell (calguy1000)
Version: 2.4.2
CMSMS Version: 1.11.2
Severity: Major
Resolution: None
State: Open
Summary:
Save or edit a map point with lat/long will result in missing coordinates
Detailed Description:
How reproduce this:

Create a new map point with lat/long coordinates using "dot" as decimal point
eg. Lat 12.436523 Lon 41.918629
When you save your point all is working fine.

As soon as you edit again this point (and open edit point page ) your "dot"
separator will become a "comma" separator. Saving this point will risult in
missing the fractional part of your coordinates.
eg. Lat 12 Lon 41

Please can you confirm this?


History

Comments
avatar
Date: 2012-11-16 09:02
Posted By: minik (mnk23cz)

Quick temporary fix in the templates/addmappoint.tpl file

line 101 change:   
  <p class="pageinput">{$input_lat}</p>
to:
  <p class="pageinput">{$input_lat|replace:',':'.'}</p>

line 105  
change: 
  <p class="pageinput">{$input_lon}</p>
to:
  <p class="pageinput">{$input_lon|replace:',':'.'}</p>
      
avatar
Date: 2012-11-16 12:39
Posted By: blast blast (blast)

Thanks!
      
avatar
Date: 2013-05-06 10:02
Posted By: jean-christophe ghio (jissey)

same problem.
Thanks for the tips