MDL-37078: Restore - section restore fails with multiple availability conditions
This commit is contained in:
@@ -760,7 +760,7 @@ abstract class condition_info_base {
|
||||
if (empty($modinfo->cms[$cmid])) {
|
||||
global $PAGE, $UNITTEST;
|
||||
if (!empty($UNITTEST) || (isset($PAGE) && strpos($PAGE->pagetype, 'course-view-')===0)) {
|
||||
debugging("Warning: activity {$this->cm->id} '{$this->cm->name}' has condition " .
|
||||
debugging("Warning: activity {$this->item->id} '{$this->item->name}' has condition " .
|
||||
"on deleted activity $cmid (to get rid of this message, edit the named activity)");
|
||||
}
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user