Backup and restore

 
 
Picture of Thirot Jean-Luc
backup_scheduled.php, schedule_backup_course_configure(), set the backup preferences
 
Hello,

This is a post for the Moodle developers,

I don't know if this function is still used, but I think that $modename must be $mod->modname for the preferences of the modules instances ?

File:
<?php //$Id: backup_scheduled.php,v 1.30.2.3 2006/06/07 22:17:31 stronk7 Exp $              
...
schedule_backup_course_configure(){
around line 400
// now set instances
...
$preferences->mods[$mod->modname]->instances[$mod->instance]->backup = $preferences->mods[$modname]->backup;
                    $preferences->mods[$mod->modname]->instances[$mod->instance]->userinfo = $preferences->mods[$modname]->userinfo;

Best regards

Jean-Luc


 
Average of ratings: -
One poor developer...
Re: backup_scheduled.php, schedule_backup_course_configure(), set the backup preferences
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Testers
Hi Jean-Luc,

tons of thanks for your report. You were right! That annoying bug was really there (and, for sure, causing problems to the scheduled course backup utility). blush

Now it's fixed, both in 1.6.1+ and 1.7dev.

Thanks again, ciao, Eloy smile
 
Average of ratings: -