Skip to content
Snippets Groups Projects
Commit 2db2d128 authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Always show default option in spatial reference select field

parent 5e130fe1
No related branches found
No related tags found
1 merge request!52Added applicableLegislation and hvdCategory support
......@@ -731,11 +731,8 @@ def get_spatial_for_selection():
spatial_mapping = list(cr)
unique_mapping = []
require_spatial_uri = toolkit.asbool(
toolkit.config.get('ckanext.odsh.require_spatial_uri', False)
)
if not require_spatial_uri:
unique_mapping.append({'value': toolkit._('Select spatial reference..'), 'key': ''})
unique_mapping.append({'value': toolkit._('Select spatial reference..'), 'key': ''})
seen_values = set()
for key, value, _ in spatial_mapping:
if value in seen_values:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment