Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fields should be backed up regardless of whether userdata is selected

  • Loading branch information...
commit 14f409f6980c8e6e3691248f40a6628f4e8206f3 1 parent 762b688
toyomoyo authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 mod/data/backuplib.php
View
6 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
}
Please sign in to comment.
Something went wrong with that request. Please try again.