Permalink
Browse files

MDL-32875: Fix highlighted section drag-drop issue

  • Loading branch information...
1 parent e16e230 commit e7b6e6b9f701401916508f57d547c0186f77c418 Ruslan Kabalin committed May 9, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 course/lib.php
View
@@ -3026,11 +3026,11 @@ function move_section_to($course, $section, $destination) {
// If we move the highlighted section itself, then just highlight the destination.
// Adjust the higlighted section location if we move something over it either direction.
if ($section == $course->marker) {
- course_set_marker($course, $destination);
+ course_set_marker($course->id, $destination);
} elseif ($moveup && $section > $course->marker && $course->marker >= $destination) {
- course_set_marker($course, $course->marker+1);
+ course_set_marker($course->id, $course->marker+1);
} elseif (!$moveup && $section < $course->marker && $course->marker <= $destination) {
- course_set_marker($course, $course->marker-1);
+ course_set_marker($course->id, $course->marker-1);
}
$transaction->allow_commit();

0 comments on commit e7b6e6b

Please sign in to comment.