Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

After entering a forbidden expression, no new assignment is shown. #3

Open
SBvanAlbada opened this issue Aug 24, 2015 · 1 comment
Open
Labels

Comments

@SBvanAlbada
Copy link
Contributor

After using a forbidden expression in student mode, one gets the message "Ulovlig tegn har blitt brukt i svar", as expected. However, if one then presses the new assignment button ("Ny oppgave"), the program halts. One has to press the "go back button" in order to stop this.
skjermbilde 2015-08-24 kl 17 15 42

@ampled ampled added the bug label Aug 24, 2015
@Enrahim
Copy link
Contributor

Enrahim commented Sep 22, 2015

oppgavegenerator / oppgavegen / views / game_views.py
line 165 adds the posted chapter id to the Dictionary. This line however is never called even if Ajax if cheat or requirement tests fails. My Guess is that this information is cruical for geting a propper new task.

Suggested attempt of fix - test for Ajax earlier and add the Chapter id in that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants