Skip to content

Commit

Permalink
MDL-34583: Assignment upgrade loses comments from onlinetext and offl…
Browse files Browse the repository at this point in the history
…ine assignment types.
  • Loading branch information
Damyon Wiese authored and stronk7 committed Aug 15, 2012
1 parent 4ee439d commit 9bdc95b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/assign/feedback/comments/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9bdc95b

Please sign in to comment.