[SMW-devel] Error in form editing when coordinates are blank

2013-11-25 Thread Benjamin Pelletier
I have a semantic form with one input that accepts coordinates, and I use Semantic Maps to let the user fill that field. I'm having a problem when that input is left blank though -- when I go to edit the page after not filling in the location, I get big red text that says Attempt to get the

Re: [SMW-devel] Error in form editing when coordinates are blank

2013-11-25 Thread Benjamin Pelletier
Update: I've changed the MapsLocation class in Maps/includes/Maps_Location.php to return '' rather than throwing an exception upon getLatitude, getLongitude, getAltitude, and getAddress calls when $isValid is false. This has the undesired result of showing the lat, lng position of an unspecified

Re: [SMW-devel] Error in form editing when coordinates are blank

2013-11-25 Thread Yaron Koren
Hi Benjamin, I, too, have experienced this problem, on a wiki that uses Semantic Maps 2.0. However, it doesn't happen on semantic-mediawiki.org, which is running Semantic Maps 3.0 alpha. Thus, I assume the bug has been fixed already (although on a version that hasn't yet been officially