MDL-24177 backup - delete some lines causing mess in source lesson because of some...
authorEloy Lafuente <stronk7@moodle.org>
Wed, 15 Sep 2010 19:47:35 +0000 (19:47 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Wed, 15 Sep 2010 19:47:35 +0000 (19:47 +0000)
mod/lesson/backup/moodle2/restore_lesson_stepslib.php

index da4da36..a8656da 100644 (file)
@@ -81,11 +81,6 @@ class restore_lesson_activity_structure_step extends restore_activity_structure_
 
         $newitemid = $DB->insert_record('lesson_pages', $data);
         $this->set_mapping('lesson_page', $oldid, $newitemid, true); // Has related fileareas
-
-        //now update previous page with newitemid as the nextpageid
-        if (!empty($data->prevpageid)) {
-            $DB->set_field('lesson_pages', 'nextpageid', $newitemid, array('id' => $data->prevpageid));
-        }
     }
 
     protected function process_lesson_answer($data) {