|
Michael Blake made changes - 21/Aug/06 04:21 PM
In my environment, the solution was to define the $USER constant as global at the beginning of the restore_execute() function:
— ORIGINAL\backup\restorelib.php Tue Sep 19 13:54:26 2006
Without this modification, the restore process finishes correctly (i.e. the whole course is properly restored), the only thing that is not completed is adding the current user as a teacher to the newly created course: line 5355: $status = add_teacher($USER->id, $restore->course_id); as the $USER->id is not available to it. Hi Daniel,
it seems to have sense, so I've applied your suggestion to 1.6! Thanks!
Eloy Lafuente (stronk7) made changes - 05/Oct/06 01:41 AM
Kurt Rosivatz made changes - 14/Oct/06 07:59 PM
Kurt Rosivatz made changes - 14/Oct/06 08:00 PM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I saw a strange option during the process.
Attached the screenshot.
From Daniele Cordella (d.cordella at iss.it) Wednesday, 12 July 2006, 02:29 PM:
I do confirm the the error but... in spite of the error notification... the course was restored.
From Ray Lawrence (ray at howtomoodle.com) Wednesday, 12 July 2006, 11:03 PM:
I've isolated this issue to the course creator not being a Teacher in the course being restored. Is this the expected behaviour or a bug?
From paolo oprandi (paolo at sussex.ac.uk) Wednesday, 12 July 2006, 11:36 PM:
Ray, I'd call it slightly buggy - the error message shouldn't be thrown. It is related to the bug I have filed:
http://moodle.org/bugs/bug.php?op=show&bugid=6051&pos=6
From Ray Lawrence (ray at howtomoodle.com) Wednesday, 12 July 2006, 11:39 PM:
Thanks Paolo. I'm watching that bug too. Unfortunately I won't have time to do much more testing on this in the near future.