MDL-33347 course: section move is visible without ajax
authorRajesh Taneja <rajesh@moodle.com>
Fri, 25 May 2012 08:19:08 +0000 (16:19 +0800)
committerRajesh Taneja <rajesh@moodle.com>
Mon, 28 May 2012 01:59:48 +0000 (09:59 +0800)
course/lib.php

index 8e07373..648f87e 100644 (file)
@@ -2995,6 +2995,8 @@ function move_section($course, $section, $move) {
         }
         $n++;
     }
+    // After moving section, rebuild course cache.
+    rebuild_course_cache($course->id, true);
     return true;
 }