]> git.mjollnir.org Git - moodle.git/commitdiff
Puttting a TODO note - return to this code once working on the Scheduled allocation
authorDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 17:55:23 +0000 (17:55 +0000)
committerDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 17:55:23 +0000 (17:55 +0000)
mod/workshop/allocation/random/allocator.php

index db8dada1989571bb1c9d60ac8e90d64be7dfb264..a710b3e0002eae15c3c8e6befcfaac8fcfbbab37 100644 (file)
@@ -90,9 +90,12 @@ class workshop_random_allocator implements workshop_allocator {
             $reviewers          = $this->workshop->get_grouped($reviewers);
             $assessments        = $this->workshop->get_assessments();
 
-            $newallocations     = array();      // array of (reviewer,reviewee) tuples
+            $newallocations     = array();      // array of array(reviewer => reviewee)
 
             if ($numofreviews) {
+                // TODO MDL-19870 rewrite this part to make it easier to maintain and extend.
+                // $removecurrent -> remove it at the beginning and stop doing the magic with unkept allocation
+                // (leading to possible bugs)
                 if ($removecurrent) {
                     // behave as if there were no current assessments
                     $curassessments = array();