From 2db2d128d90ec702cbd79bd48f15e8cc471c4422 Mon Sep 17 00:00:00 2001 From: Thorge Petersen <petersen@rz.uni-kiel.de> Date: Mon, 26 Feb 2024 09:58:47 +0100 Subject: [PATCH] Always show default option in spatial reference select field --- ckanext/odsh/helpers.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ckanext/odsh/helpers.py b/ckanext/odsh/helpers.py index 253289f..bc8dea9 100644 --- a/ckanext/odsh/helpers.py +++ b/ckanext/odsh/helpers.py @@ -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: -- GitLab