Permalink
Browse files

fields should be backed up regardless of whether userdata is selected

  • Loading branch information...
toyomoyo
toyomoyo committed Nov 10, 2006
1 parent 762b688 commit 14f409f6980c8e6e3691248f40a6628f4e8206f3
Showing with 4 additions and 2 deletions.
  1. +4 −2 mod/data/backuplib.php
View
@@ -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
}

0 comments on commit 14f409f

Please sign in to comment.