]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18950 Not printing "move selected to" element if no grade category exists. Merged...
authornicolasconnault <nicolasconnault>
Fri, 24 Apr 2009 08:13:56 +0000 (08:13 +0000)
committernicolasconnault <nicolasconnault>
Fri, 24 Apr 2009 08:13:56 +0000 (08:13 +0000)
grade/edit/tree/index.php

index 354969650ed72cbb254bfb610383be2ef1a3dfc7..c4dbd53f47e46147d8fc61b8d8f69f65780d5983 100644 (file)
@@ -321,7 +321,8 @@ if (!$moving) {
     echo '<input class="advanced" type="submit" value="'.get_string('savechanges').'" />';
 }
 
-if (!$moving) {
+// We don't print a bulk move menu if there are no other categories than course category
+if (!$moving && count($categories) > 1) {
     echo '<br /><br />';
     echo '<input type="hidden" name="bulkmove" value="0" id="bulkmoveinput" />';
     echo get_string('moveselectedto', 'grades') . ' ';