ckan / ckanext-mapviews

CKAN Resource View to build maps and choropleth maps
26 stars 23 forks source link

Error when saving the map #11

Closed vitorbaptista closed 10 years ago

vitorbaptista commented 10 years ago

The error is:

[error] [client 127.0.0.1] Error - <type 'exceptions.TypeError'>: Undefined is not JSON serializable

The problem is that we're using h.dump_json in https://github.com/ckan/ckanext-choroplethmap/blob/master/ckanext/choroplethmap/theme/templates/choroplethmap_view.html#L12 to parse the filter_fields. But in the beginning, we don't have them, so we try to serialize None, and get this exception