diff --git a/backup/CHANGES_14_15.txt b/backup/CHANGES_14_15.txt index 54df8b31b2e..a7a3675c4e2 100644 --- a/backup/CHANGES_14_15.txt +++ b/backup/CHANGES_14_15.txt @@ -14,7 +14,7 @@ Now I show the specific detailed status of every item in the process: 4. DONE: user_students->enrol (analyse and proceed). 5. DONE: user_teachers->enrol (analyse and proceed). 6. DONE: user->policyagreed (analyse and proceed). - 7. TODO: groups->password + 7. DONE: groups->password 8. TODO: assignment->emailteachers 9. TODO: exercise->usepassword and exercise->password 10. TODO: exercise_assessments->generalcomment and teachercomment diff --git a/backup/backuplib.php b/backup/backuplib.php index 58f46744751..5b36dc9b26d 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -1108,6 +1108,7 @@ fwrite ($bf,full_tag("COURSEID",4,false,$group->courseid)); fwrite ($bf,full_tag("NAME",4,false,$group->name)); fwrite ($bf,full_tag("DESCRIPTION",4,false,$group->description)); + fwrite ($bf,full_tag("PASSWORD",4,false,$group->password)); fwrite ($bf,full_tag("LANG",4,false,$group->lang)); fwrite ($bf,full_tag("PICTURE",4,false,$group->picture)); fwrite ($bf,full_tag("HIDEPICTURE",4,false,$group->hidepicture)); diff --git a/backup/restorelib.php b/backup/restorelib.php index 0d4d9fa27d3..5ff936b7ba0 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -1241,6 +1241,7 @@ $gro->courseid = backup_todb($info['GROUP']['#']['COURSEID']['0']['#']); $gro->name = backup_todb($info['GROUP']['#']['NAME']['0']['#']); $gro->description = backup_todb($info['GROUP']['#']['DESCRIPTION']['0']['#']); + $gro->password = backup_todb($info['GROUP']['#']['PASSWORD']['0']['#']); $gro->lang = backup_todb($info['GROUP']['#']['LANG']['0']['#']); $gro->picture = backup_todb($info['GROUP']['#']['PICTURE']['0']['#']); $gro->hidepicture = backup_todb($info['GROUP']['#']['HIDEPICTURE']['0']['#']);