lmsace / moodle-hide-correct-questions

This Moodle plugin allows teachers to hide questions that have been correctly answered in previous attempts. This can be useful in preventing students from seeing the correct answers and encourages them to attempt the questions again.
https://lmsace.com
0 stars 1 forks source link

Previous page doesn't work if previous question hidden #4

Open leonstr opened 7 months ago

leonstr commented 7 months ago

If a question is hidden then the browser is redirected to the next page. So if they student clicks Previous page they stay on the current page.

Steps to reproduce issue

  1. Create a course and enrol a student.
  2. Add a quiz:
    1. Each attempt builds on the last = "Yes"
    2. Hide questions on attempt = "Hide the correct answered questions in new attempt"
    3. Questions auto grade = "Auto grade the correct questions"
  3. Add three True/False questions.
  4. As a student:
    1. Attempt the quiz. Get question 1 wrong and questions 2 and 3 correct.
    2. Click Finish attempt ... and Submit all and finish (and again).
  5. As the same student re-attempt the quiz.
  6. Question 1 is shown. Click Next page.
  7. The message Questions in this page are completed correctly in previous attempt, No need to attempt again. is displayed.
  8. Click Previous page.

Expected results

The student is returned to question 1.

Actual results

The page does not change. The message Questions in this page are completed correctly in previous attempt, No need to attempt again. is displayed.

Moodle 4.2.6+ (Build: 20240315) with quizaccess_hidecorrect 2023091400 (v2.0).

prasanna-lmsace commented 4 months ago

Hi @leonstr,

Thank you for bringing this issue to our attention.

We are currently working on this bug fix, you can expect the fix in the next release shortly.

Thanks, Prasanna