Skip to content

Commit

Permalink
fix: #810 fix xml import of additional_input
Browse files Browse the repository at this point in the history
Signed-off-by: David Wallace <[email protected]>
  • Loading branch information
MyPyDavid committed Jul 12, 2024
1 parent c4a1eb6 commit a77fc23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rdmo/core/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ def convert_additional_input(elements):
for uri, element in elements.items():
if element['model'] == 'options.option':
additional_input = element.get('additional_input')
if additional_input == 'True':
if additional_input in ['', 'text', 'textarea']: # from Option.ADDITIONAL_INPUT_CHOICES
element['additional_input'] = additional_input
elif additional_input == 'True':
element['additional_input'] = 'text'
else:
element['additional_input'] = ''
Expand Down

0 comments on commit a77fc23

Please sign in to comment.