Permalink
Browse files

MDL-34583: Assignment upgrade loses comments from onlinetext and offl…

…ine assignment types.
  • Loading branch information...
Damyon Wiese authored and stronk7 committed Jul 27, 2012
1 parent 4ee439d commit 9bdc95b7029db06d2f01aa692b8cedf50454f2b8
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/assign/feedback/comments/locallib.php
@@ -213,7 +213,8 @@ public function view(stdClass $grade) {
*/
public function can_upgrade($type, $version) {
- if (($type == 'upload' || $type == 'uploadsingle') && $version >= 2011112900) {
+ if (($type == 'upload' || $type == 'uploadsingle' ||
+ $type == 'online' || $type == 'offline') && $version >= 2011112900) {
return true;
}
return false;

0 comments on commit 9bdc95b

Please sign in to comment.