-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
1.4.3
-
None
-
All
-
MOODLE_14_STABLE
During the backup only one - last - dialogue entry is backed up.
Proposed (and tested) solution - in the mod/dialogue/backuplib.php change the lines as follows:
#95
now: $status = backup_dialogue_entries($bf,$preferences,$conversation->id);
proposed: $status = backup_dialogue_entries($bf,$preferences,$dialogue);
We need to back up entries for the whole dialogue, not only for the last processed conversation, so consequently:
#105
now: function backup_dialogue_entries ($bf,$preferences,$conversationid) {
proposed: function backup_dialogue_entries ($bf,$preferences,$dialogue) {
#111
now: $dialogue_entries = get_records(dialogue_entries,conversationid,$conversationid,id);
proposed: $dialogue_entries = get_records(dialogue_entries,dialogueid,$dialogue,id);
Dan