quiz: MDL-6085 when editing a question from various places like a preview attempt or review screen, don't use a popup, instead take advantage of the fact that question.php now takes a returnurl. Merged from MOODLE_19_STABLE.

And MDL-17568 minor niggles with new queston navigation:
* The bit that scrolls down to the question you just submitted in adaptive mode was not working with random questions.
* Teachers reviewing an open attempt were shown the qusetions as editable, not read only!
This commit is contained in:
tjhunt
2008-12-10 06:26:47 +00:00
parent f94824dbbe
commit aafdb447bf
9 changed files with 92 additions and 46 deletions
+1
View File
@@ -189,6 +189,7 @@
// TODO: should not use quiz-specific function here
$options = quiz_get_renderoptions($quiz, $attempt, $context, $curstate);
$options->noeditlink = true;
// Fill in the correct responses (unless the question is in readonly mode)
if ($fillcorrect && !$options->readonly) {