MDL-33414: The setting $showviewlink needs to be passed by reference

This was preventing the view full submission/feedback link from appearing
everywhere in the assignment when the submission/feedback content had been
truncated in the summary because it was too long (or too many files)
This commit is contained in:
Damyon Wiese
2012-05-30 08:37:56 +08:00
parent 4631e39533
commit 7ee1548acb
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -344,7 +344,7 @@ abstract class assign_plugin {
* @param bool $showviewlink Modifed to return whether or not to show a link to the full submission/feedback
* @return string - return a string representation of the submission in full
*/
public function view_summary(stdClass $submissionorgrade, $showviewlink) {
public function view_summary(stdClass $submissionorgrade, & $showviewlink) {
return '';
}