Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 1627... Línea 1627...
1627
                if (is_null($section->availability)) {
1627
                if (is_null($section->availability)) {
1628
                    $section->availability = \core_availability\info::convert_legacy_fields(
1628
                    $section->availability = \core_availability\info::convert_legacy_fields(
1629
                            $data, true);
1629
                            $data, true);
1630
                }
1630
                }
1631
            }
1631
            }
-
 
1632
            // Moodle 4.4 implement basic delegated section logic but it is not able to restore
-
 
1633
            // them from a backup. To prevent unexpected retoration errors, all sections with
-
 
1634
            // a component will be restored as a normal section.
1632
            $section->component = $data->component ?? null;
1635
            $section->component = null;
1633
            $section->itemid = $data->itemid ?? null;
1636
            $section->itemid = null;
1634
            $newitemid = $DB->insert_record('course_sections', $section);
1637
            $newitemid = $DB->insert_record('course_sections', $section);
1635
            $section->id = $newitemid;
1638
            $section->id = $newitemid;
Línea 1636... Línea 1639...
1636
 
1639