Bug: geo_location data not saved correctly in user custom field

With the latest CWP and Locations plugins, on Tests-Passed,

When these occur:

  1. a Locations Field is configured
  2. this presented in a simple Wizard
  3. in Update Profile there is a Custom mapping like this:

The .json data in the geo_location field unfortunately does not result in the location being presented in the user profile, card, or summary. See below for examples:

When data is inputed via /my/preferences/profile:

{"lat":"-45.8740984","lon":"170.5035755","address":"Dunedin, Dunedin City, Otago, 9016, New Zealand","countrycode":"nz","city":"Dunedin","state":"Otago","country":"New Zealand","postalcode":"9016","boundingbox":["-46.0340984","-45.7140984","170.3435755","170.6635755"],"type":"city"}

This shows in the map, on the user cards / profile, and in /my/preferences/profile nicely

When the data gets there via the Wizard Custom mapping as above

{"city":"Dunedin","geo_location":{"lat":"-45.8740984","lon":"170.5035755","address":"Dunedin, Dunedin City, Otago, 9016, New Zealand","countrycode":"nz","city":"Dunedin","state":"Otago","country":"New Zealand","postalcode":"9016","boundingbox":["-46.0340984","-45.7140984","170.3435755","170.6635755"],"type":"city","selected":"true","zoomTo":"true"}}

This doesn’t show up at all on the map, shows as a ‘blank’ in the user cards / profile, and appears blank in /my/preferences/profile:

image

image

Basically, it seems to include the input sub-field in an unhelpful way, with geo_location nested one level deeper.

Perhaps this is only designed for Topics, not users - and this is a feature request.

2 Likes

Are you aware if this working better on a prior version of CW? ie is this a regression or was it possibly always this way?

The data extracts are really useful, thanks.

1 Like

I’m not sure sorry; I’ve tried to get this working in the past, but thought I failed due to my inadequate config work.

This is the first time I’ve really investigated it.

1 Like