-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix select type replace aliases #251
Conversation
2e3f853
to
bc5e3d6
Compare
Out of curiosity, I checked out master The one scenario that didn't pass was when
Have we already fixed this in master? Or is the bug triggered by this particular scenario? |
Also I made a smaller test to see if the internal representation of the
|
@dorey sorry for letting this slip under the radar. Regarding this situation:
This is the new buggy behaviour that I think my commit b98dbb1 introduced and this is on production. My fix here (as things stand) reverts back to the earlier behaviour of transforming this:
... into:
When the now incorrect asset content contains:
... the form-builder breaks that question and the export fails. This fix at least allows for the export to succeed even if the form-builder complains about the still incorrect asset content: If they upload their form again, the form-builder will function correctly as the new asset content is valid: ... and exports with all versions still works: If they now changed their XLSForm to the preferred
... the asset content looks good with:
... the form-builder still works as expected: ... and exports with all versions succeeds: |
as we see them (in expand_content) * `expand_content` util has the dictionary available, and now replaces the select types if they are matched * added one test of an alias of select_multiple
Description
Fix bug that prevented
select one
being converted toselect_one
and handle legacyselect one
for exports and auto report to prevent failures.Related issues
closes #250