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

Only append default value in spatial reference select if spatial uri is not required

parent 579390db
No related branches found
No related tags found
1 merge request!52Added applicableLegislation and hvdCategory support
...@@ -731,6 +731,10 @@ def get_spatial_for_selection(): ...@@ -731,6 +731,10 @@ def get_spatial_for_selection():
spatial_mapping = list(cr) spatial_mapping = list(cr)
unique_mapping = [] 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() seen_values = set()
for key, value, _ in spatial_mapping: for key, value, _ in spatial_mapping:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment