xml file selection change
@@ -448,6 +448,9 @@ def get_all_related_shp_files(resource, selected_resource_file, file_type):
temp_dir = ''
if selected_resource_file.extension.lower() == '.shp':
for f in resource.files.all():
+ if f.file_folder == selected_resource_file.file_folder:
+ if f.extension.lower() == '.xml' and not f.file_name.lower().endswith('.shp.xml'):
+ continue
if f.extension.lower() in GeoFeatureLogicalFile.get_allowed_storage_file_types():
if file_type:
if f.has_generic_logical_file:
