MDL-49356 restore: handle course completion if still not defined
authorEugene Venter <eugene@catalyst.net.nz>
Tue, 3 Mar 2015 00:36:11 +0000 (13:36 +1300)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 16 Mar 2015 23:34:09 +0000 (00:34 +0100)
commit96e339cc585fa266dc9e15cb05ff84a886e70f94
tree3b0aa68c79662fc628f0c43ba06b712b76a1b90e
parente201bf16a0165f4da5cf476671cb62c75722052c
MDL-49356 restore: handle course completion if still not defined

Before this patch course completion only was restored if, appart from
other conditions... we were restoring to new course, never to existing
one.

This relaxes a bit that condition in order to be able to restore to an
existing course not having any course completion setting defined, so no
conflict will happen ever.
backup/moodle2/restore_final_task.class.php
backup/moodle2/restore_stepslib.php