Page MenuHomePhabricator

Semantic Forms sfautoedit via API loses field with coordinate information
Closed, ResolvedPublic

Description

To see the behavior see this diff:

http://roadsignmath.com/w/index.php?title=Illinois_Cancellation&diff=prev&oldid=6700

That diff is the result of this autoedit call:

c = wiki.call({'action': 'sfautoedit', 'form': 'Sign', 'target': title, 'Sign[State]': result.rows[0]['state'], 'Sign[City]': result.rows[0]['city'], 'Sign[County]': result.rows[0]['county'], 'Sign[Country]': result.rows[0]['country'] })

Note that "Coordinates" is not one of the fields being edited. When the edit occurs Semantic Forms moves the fields around in the Template as it usually does, but the Coordinates field contents are lost in the process.

I've got Semantic Forms 2.5.1 and SMW 1.9 alpha.


Version: master
Severity: major

Details

Reference
bz44227

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:32 AM
bzimport set Reference to bz44227.

Reassigning to f.trott - the autoedit code is his.

Had a hunch this was a problem with the map input type and a quick test suggests it is. If I change the Coordinates input type from "googlemaps" to "string" and run the sfautoedit there is no problem, it works great. If the input type is "googlemaps" it loses it's contents.

Something bad happens when sfautoedit hits an input type of googlemaps.

This looks to be the same bug as #38183.

  • This bug has been marked as a duplicate of bug 38183 ***