Open isacsonk opened 10 years ago
This is weird because I was sure I solved exactly this problem in this commit: https://github.com/ETHZLET/moodle-qtype_freehanddrawing/commit/a75144afb6c365910cb5f31e8bf5f349d9135349 I will try to reproduce it again and get back to you..
Despite my best efforts was not able to reproduce this error. I'd need access to a computer where this problem occurs to fix it.
I tried to test this on the testserver, where the newest code should be installed, but restoring using the option for the Destination "Delete the contents of this course and then restore" didn't work. The process froze at step 6 before it should be finished at step 7. This works on live and then the image is gone in the freehanddrawing question. If you use the option "Merge the backup course into this course" as destination the image is still there.
It seems like the image gets lost in the export process, because when I export from the Live Server and import and merge it into an existing course on the test server the image is lost.
Today when I backup and restore the test into an existing course the image is lost.
I asked KR, the newest code is on the testserver, still, when I backup and restore a course with a test with a freehand drawing question, the image is gone. how to reproduce: 1) in a course add a quiz with a freehanddrawing picture 2) standing on the course, click "backup" in the left navigation 3) keep the default settings and click next and perform the backup 4) when the backup was successfully created, click continue 5) beneath the title "course backup area" there is the backupmoodle-file, click on restore to the right of the file to restore it 6) click continue without changing any settings 7) select "Delete the contents of this course and then restore" and click continue 8) don't change any settings click next and then perform restore 9) when the course was restored successfully click continue 10) go to the quiz with the freehand drawing question 11) click on preview --> instead of the image the text "Unable to fetch canvas background image file" is shown
how to reproduce:
requirement: image should come along