Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-29538 core_condition: Section conditions are now deleted from DB

  • Loading branch information...
commit 94b94c38e79b1e415b8e1d56251c7f8a066a3885 1 parent e01fbcf
@markn86 markn86 authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/moodlelib.php
View
3  lib/moodlelib.php
@@ -4711,6 +4711,9 @@ function remove_course_contents($courseid, $showfeedback = true, array $options
$DB->delete_records_select('course_sections_availability',
'coursesectionid IN (SELECT id from {course_sections} WHERE course=?)',
array($course->id));
+ $DB->delete_records_select('course_sections_avail_fields',
+ 'coursesectionid IN (SELECT id from {course_sections} WHERE course=?)',
+ array($course->id));
$DB->delete_records('course_sections', array('course'=>$course->id));
// delete legacy, section and any other course files
Please sign in to comment.
Something went wrong with that request. Please try again.