assignment MDL-23680 fixed upload single not displaying response file to student.
authorAparup Banerjee <nebgor@gmail.com>
Fri, 6 Aug 2010 03:32:11 +0000 (03:32 +0000)
committerAparup Banerjee <nebgor@gmail.com>
Fri, 6 Aug 2010 03:32:11 +0000 (03:32 +0000)
mod/assignment/lib.php

index 817ea85..7ff052d 100644 (file)
@@ -321,6 +321,17 @@ class assignment_base {
         echo '</div>';
         echo '</tr>';
 
         echo '</div>';
         echo '</tr>';
 
+         if ($this->type == 'uploadsingle') { //@TODO: move to overload view_feedback method in the class or is uploadsingle merging into upload?
+            $responsefiles = $this->print_responsefiles($submission->userid, true);
+            if (!empty($responsefiles)) {
+                echo '<tr>';
+                echo '<td class="left side">&nbsp;</td>';
+                echo '<td class="content">';
+                echo $responsefiles;
+                echo '</tr>';
+            }
+         }
+
         echo '</table>';
     }
 
         echo '</table>';
     }