You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the wizard, upload an XLSForm with empty labels
Finish the remaining steps in the wizards and save the project.
Actual behavior
Saving the project throws an IntegrityError. The field label_xlat in QuestionOption models can be an empty dict but not None. This line reads empty values to None, which leads to the exception. The line should read label_xlat=o.get('label_xlat', o.get('label', {})) instead.
Expected behavior
The form should be processed without throwing an exception.
The text was updated successfully, but these errors were encountered:
Steps to reproduce the error
Actual behavior
Saving the project throws an IntegrityError. The field
label_xlat
inQuestionOption
models can be an emptydict
but notNone
. This line reads empty values toNone
, which leads to the exception. The line should readlabel_xlat=o.get('label_xlat', o.get('label', {}))
instead.Expected behavior
The form should be processed without throwing an exception.
The text was updated successfully, but these errors were encountered: