academic-moodle-cooperation / moodle-mod_offlinequiz

The Offline Quiz activity allows the creation of multiple choice tests with questions from the question bank of a Moodle course, which are handed out to students in printed form. After completion, the answer forms are scanned and can be automatically evaluated online directly in Moodle.
https://academic-moodle-cooperation.org/mod_offlinequiz/
GNU General Public License v3.0
31 stars 58 forks source link

Bug in version of question in question list when activity is restored or duplicated #269

Open abowman-unige opened 1 month ago

abowman-unige commented 1 month ago

Moodle : 4.4.1+ Offline quiz: 4.4.0

When an offline quiz activity is restored or duplicated in a moodle course if a question as more than 1 version it's not possible to switch and edit it correctly from the question list. An example here:

  1. Question 1 as 6 version, when clicking on edit the question version 6 shows correctly. image

  2. If now I want to switch to version 4, the page reload. image

  3. The input shows version 6 wrongly after the reload. image

  4. When i want to edit it, the version 4 is shown correctly image

  5. The problem now is I can't go back to the latest version because the input shows that version 6 is selected wrongly and i can't click it back. I'm block between version 1 to 5.

The problem is confusing and the only way to go back to a normal situation is to delete all question from the list and re-import them manually.

Thanks

mwreichel commented 1 month ago

Hi @abowman-unige , thank you for reporting this. We'll have a look on it.

Kind regards, Martin

mwreichel commented 1 month ago

@abowman-unige , we already check this, but weren't able to find this bug on our instance. Please could you add more information on that? When the offlinequiz activity was created?

If possible, please attach a backup of the activity.

Thanks, Martin

abowman-unige commented 1 month ago

Here's a backup of the activity that have the problem: backup-moodle2-activity-110-offlinequiz110-20240807-1351-nu.zip

The original offline activity was created this year (25 May) on Offline quiz version v4.2.2 (2023113002).

I hope it helps

mwreichel commented 1 month ago

Thanks, we'll have a further look on it.

mwreichel commented 1 month ago

Hi @abowman-unige, meanwhile we were able to comprehend the mentioned behaviour. One of our developers will focus on this error and try to solve it asap.

Cheers, Martin