Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

locationSearchOptions don't respect the name defined in the config when reordered #511

Closed
chris-fox opened this issue Jul 11, 2016 · 2 comments
Assignees

Comments

@chris-fox
Copy link

chris-fox commented Jul 11, 2016

Currently the location search options are defined like below.

"locationSearchOptions": {
"enableMyLocation": true,
"enableSearch": true,
"enableLatLng": true,
"enableUSNG": false,
"enableMGRS": false,
"enableUTM": false
},

If instead the config is defined as below, with the same boolean state but in a different order you get unexpected results in the form. It seems to be honoring the order of the properties not the name. In the example below what you see in the form is that MGRS and UTM are enabled but Search and LatLng are disabled.

"locationSearchOptions": {
"enableMyLocation": true,
"enableUSNG": false,
"enableMGRS": false,
"enableUTM": false
"enableSearch": true,
"enableLatLng": true,
},

driskull added a commit that referenced this issue Jul 14, 2016
@driskull
Copy link
Member

thanks @chris-fox !

@driskull driskull self-assigned this Jul 14, 2016
@chris-fox
Copy link
Author

@driskull, thanks looks good! Only noticed this while i was working on a python script to create new items items and the search options were written in a different order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants