MDL-27764 restore - always restore as much info as possible (1.9 approach)
commitb1f222f67204048ba42e95f614ca94b6f7ce4303
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 5 Mar 2012 01:41:33 +0000 (5 02:41 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 5 Mar 2012 01:49:20 +0000 (5 02:49 +0100)
treef66280f19c1f9d5f2ed3bb41daabd35db28bd538
parentf24a1a74e5ec7f8f7a7f4c7d808d68e3cd7cc5f1
MDL-27764 restore - always restore as much info as possible (1.9 approach)

In 2.0 we had reduced the types of restore operations where we allow
to load the section names and section descriptions, only proceeding
when restoring to new course or to existing course, deleting.

With this patch, we change to the old 1.9 way, that was to restore
the section information always, no matter of the type of restore
operation (course restore, import, to new or to existing course,
deleting or adding). The only exception is that it's always checked that
the target section names and descriptions are empty.
backup/moodle2/restore_section_task.class.php