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

Send translation settings with saved rows to question library #2742

Merged
merged 3 commits into from Jul 30, 2020

Conversation

duvld
Copy link
Member

@duvld duvld commented Jul 30, 2020

Forms with translations could not transfer their translation settings when saving a row to library. This was due to unnullifyTranslations not being called when saving a single row to the question library.

This PR fixes this issue by sending the entire survey to unnullifyTranslations then fishing out the row being saved and sending said row and its translation to the question library. This could be potentially heavy if there is a large form - if so adding a single row version of unnullifyTranslations may be needed.

Description

Include translations when saving a question from the form builder to the question library

Related issues

Fixes #2731

jsapp/js/models/surveyScope.es6 Show resolved Hide resolved
jsapp/js/models/surveyScope.es6 Outdated Show resolved Hide resolved
jsapp/js/models/surveyScope.es6 Outdated Show resolved Hide resolved
@magicznyleszek
Copy link
Member

@duvld also feel free to merge this PR when you fix these few minor things :)

@duvld duvld merged commit a98066f into master Jul 30, 2020
@magicznyleszek magicznyleszek deleted the 2731-library-translations branch August 3, 2020 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

First translation name is removed when adding question to library from formbuilder
2 participants