From: toyomoyo Date: Fri, 10 Nov 2006 04:17:37 +0000 (+0000) Subject: merged, fields should be backed up regardless of whether user data is selected X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5fdb12fe29796b1469787eaeeb71a147ff6d2d78;p=moodle.git merged, fields should be backed up regardless of whether user data is selected --- diff --git a/mod/data/backuplib.php b/mod/data/backuplib.php index 8666439dc3..cc328f58a0 100644 --- a/mod/data/backuplib.php +++ b/mod/data/backuplib.php @@ -101,13 +101,15 @@ function data_backup_one_mod($bf,$preferences,$data) { // if we've selected to backup users info, then call any other functions we need // including backing up individual files + + $status = backup_data_fields($bf,$preferences,$data->id); + if (backup_userdata_selected($preferences,'data',$data->id)) { //$status = backup_someuserdata_for_this_instance(); //$status = backup_somefiles_for_this_instance(); // ... etc - $status = backup_data_records($bf,$preferences,$data->id); - $status = backup_data_fields($bf,$preferences,$data->id); + $status = backup_data_records($bf,$preferences,$data->id); if ($status) { $status = backup_data_files_instance($bf,$preferences,$data->id); //recursive copy }