Skip to content

Commit

Permalink
Merge pull request #4979 from kobotoolbox/fix-enketo-editing-error
Browse files Browse the repository at this point in the history
Fix "There was an error loading Enketo" when attempting to edit submissions
  • Loading branch information
jnm authored Jun 18, 2024
2 parents be33572 + 22b5ac8 commit 2ee8da8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions kpi/models/asset_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,6 @@ def generate_xml_from_source(self,
warnings = []
details = {}

for row in source_copy['survey']:
if row.get('type') in ['select_one_from_file', 'select_multiple_from_file']:
ff = row.pop('file')
_type = row.pop('type')
row['type'] = f'{_type} {ff}'

try:
xml = FormPack({'content': source_copy},
root_node_name=root_node_name,
Expand Down

0 comments on commit 2ee8da8

Please sign in to comment.