Last modified: 2013-01-28 16:29:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46227, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44227 - Semantic Forms sfautoedit via API loses field with coordinate information
Semantic Forms sfautoedit via API loses field with coordinate information
Status: RESOLVED DUPLICATE of bug 38183
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
master
All All
: Unprioritized major (vote)
: ---
Assigned To: s7eph4n
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-21 22:49 UTC by Jamie Thingelstad
Modified: 2013-01-28 16:29 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jamie Thingelstad 2013-01-21 22:49:19 UTC
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.
Comment 1 Yaron Koren 2013-01-21 22:52:23 UTC
Reassigning to f.trott - the autoedit code is his.
Comment 2 Jamie Thingelstad 2013-01-21 22:58:00 UTC
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.
Comment 3 Jamie Thingelstad 2013-01-28 16:29:21 UTC
This looks to be the same bug as #38183.

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links