Skip to content
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(SFT-1540): only show fields belong to the selected form #1635

Merged
merged 3 commits into from
Nov 15, 2024

Conversation

seandelaney
Copy link
Contributor

@seandelaney seandelaney commented Nov 14, 2024

Fixes #1610

Resolves an issue with rows in the freeform_export_settings after v5 migration. The JSON still contains some old field IDs.

We could try to migrate the export settings table. Try to grab all the new field ids for each form in the JSON but that involves keeping track of all previous export settings, previous checked form field ids and the new form field ids and rebuilding the JSON. I feel that could get messy and maybe cause more issues than good. The lesser of the two evils is to hide invalid fields and save new settings. So when the quick export modal opens, we skip over invalid field IDs. Then when the user performs an export, the stale settings are automatically fixed as they get overwritten.

I've also improved the quick export modal styling. Field labels do not wrap and the modal width is set to match the width of the longest label.

Before:
image

After:
image

@kjmartens kjmartens merged commit a2fc2cb into v5 Nov 15, 2024
@kjmartens kjmartens deleted the fix/SFT-1540-quick-export-modal branch November 15, 2024 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Error Accessing Submissions
3 participants