forked from hedyorg/hedy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUG FIX] Quiz and parsons now use the correct keyword language when …
…toggled (hedyorg#3888) **Description** We fix a bug where the keyword language wouldn't be correct for both the parsons and the quiz when using the UI toggle and we "force" the keyword language. This is due to the structure were we GET each question or exercise separately and depend on the `g.keyword_lang` value. However, this is incorrect when forcing the language! Therefore we now first check if there is a forced parameter in the url, if so: change the url and get the correct question / exercise. **Fixes** This PR fixes hedyorg#3884. **How to test** Make sure that both the parsons and quiz work when not logged in and using the keyword language toggle.
- Loading branch information
Showing
4 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters