lsuits / OBSOLETE--DO-NOT-USE--gradebook_moodle

LSU's fork of Moodle for gradebook changes
GNU General Public License v3.0
2 stars 1 forks source link

calculations #25

Closed rrusso closed 12 years ago

rrusso commented 12 years ago

Please patch the following into our gradebook.

diff --git a/grade/edit/tree/lib.php b/grade/edit/tree/lib.php
index ab1b84b..940da8b 100644
--- a/grade/edit/tree/lib.php
+++ b/grade/edit/tree/lib.php
@@ -131,7 +131,9 @@ class grade_edit_tree {
             $actions .= $this->gtree->get_edit_icon($element, $this->gpr);
         }

-        $actions .= $this->gtree->get_calculation_icon($element, $this->gpr);
+        if ($CFG->grade_report_showcalculations) {
+            $actions .= $this->gtree->get_calculation_icon($element, $this->gpr);
+       }

         if ($element['type'] == 'item' or ($element['type'] == 'category' and $element['depth'] > 1)) {
             if ($this->element_deletable($element)) {
philcali commented 12 years ago

Ok; Is this something that can wait until Wednesday with all the gradebook changes, or is it an emergency?

Update: I was thinking we could update the moodle gradebook this week.

rrusso commented 12 years ago

Wednesday. It is tested already.