mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Fix for bug #3607
This commit is contained in:
parent
bf84d91915
commit
952284c1b0
@ -3000,40 +3000,40 @@ function remove_course_contents($courseid, $showfeedback=true) {
|
||||
|
||||
// Delete gradebook stuff
|
||||
|
||||
if (delete_records("grade_category", "course", $course->id)) {
|
||||
if ($showfeedback) {
|
||||
notify("$strdeleted grade categories");
|
||||
} else {
|
||||
$result = false;
|
||||
}
|
||||
if (delete_records("grade_category", "courseid", $course->id)) {
|
||||
if ($showfeedback) {
|
||||
notify("$strdeleted grade categories");
|
||||
}
|
||||
} else {
|
||||
$result = false;
|
||||
}
|
||||
if (delete_records("grade_exceptions", "course", $course->id)) {
|
||||
if ($showfeedback) {
|
||||
notify("$strdeleted grade exceptions");
|
||||
} else {
|
||||
$result = false;
|
||||
}
|
||||
if (delete_records("grade_exceptions", "courseid", $course->id)) {
|
||||
if ($showfeedback) {
|
||||
notify("$strdeleted grade exceptions");
|
||||
}
|
||||
} else {
|
||||
$result = false;
|
||||
}
|
||||
if (delete_records("grade_item", "course", $course->id)) {
|
||||
if ($showfeedback) {
|
||||
notify("$strdeleted grade items");
|
||||
} else {
|
||||
$result = false;
|
||||
}
|
||||
}
|
||||
if (delete_records("grade_letter", "course", $course->id)) {
|
||||
if ($showfeedback) {
|
||||
notify("$strdeleted grade letters");
|
||||
} else {
|
||||
$result = false;
|
||||
}
|
||||
if (delete_records("grade_item", "courseid", $course->id)) {
|
||||
if ($showfeedback) {
|
||||
notify("$strdeleted grade items");
|
||||
}
|
||||
} else {
|
||||
$result = false;
|
||||
}
|
||||
if (delete_records("grade_preferences", "course", $course->id)) {
|
||||
if ($showfeedback) {
|
||||
notify("$strdeleted grade preferences");
|
||||
} else {
|
||||
$result = false;
|
||||
}
|
||||
if (delete_records("grade_letter", "courseid", $course->id)) {
|
||||
if ($showfeedback) {
|
||||
notify("$strdeleted grade letters");
|
||||
}
|
||||
} else {
|
||||
$result = false;
|
||||
}
|
||||
if (delete_records("grade_preferences", "courseid", $course->id)) {
|
||||
if ($showfeedback) {
|
||||
notify("$strdeleted grade preferences");
|
||||
}
|
||||
} else {
|
||||
$result = false;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user