gradebook MDL-24455 moved printing of page header until after all of the potential...
authorAndrew Davis <andrew@affinitysoftware.net>
Fri, 1 Oct 2010 03:54:59 +0000 (03:54 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Fri, 1 Oct 2010 03:54:59 +0000 (03:54 +0000)
grade/edit/tree/index.php

index 87d9c48..8d88615 100644 (file)
@@ -229,8 +229,6 @@ if ($current_view != '') {
     }
 }
 
-print_grade_page_head($courseid, 'edittree', $current_view, get_string('categoriesedit', 'grades') . ': ' . $current_view_str);
-
 //if we go straight to the db to update an element we need to recreate the tree as
 // $grade_edit_tree has already been constructed.
 //Ideally we could do the updates through $grade_edit_tree to avoid recreating it
@@ -320,6 +318,8 @@ if ($data = data_submitted() and confirm_sesskey()) {
     }
 }
 
+print_grade_page_head($courseid, 'edittree', $current_view, get_string('categoriesedit', 'grades') . ': ' . $current_view_str);
+
 // Print Table of categories and items
 echo $OUTPUT->box_start('gradetreebox generalbox');