fixed legacy comment upgrade code in assignment and journal
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
$submission->data1 = backup_todb($sub_info['#']['DATA1']['0']['#']);
|
||||
$submission->data2 = backup_todb($sub_info['#']['DATA2']['0']['#']);
|
||||
$submission->grade = backup_todb($sub_info['#']['GRADE']['0']['#']);
|
||||
if (isset(backup_todb($sub_info['#']['COMMENT']['0']['#']))) {
|
||||
if (isset($sub_info['#']['COMMENT']['0']['#'])) {
|
||||
$submission->submissioncomment = backup_todb($sub_info['#']['COMMENT']['0']['#']);
|
||||
} else {
|
||||
$submission->submissioncomment = backup_todb($sub_info['#']['SUBMISSIONCOMMENT']['0']['#']);
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
$entry->text = backup_todb($entry_info['#']['TEXT']['0']['#']);
|
||||
$entry->format = backup_todb($entry_info['#']['FORMAT']['0']['#']);
|
||||
$entry->rating = backup_todb($entry_info['#']['RATING']['0']['#']);
|
||||
if (isset(backup_todb($entry_info['#']['COMMENT']['0']['#']))) {
|
||||
if (isset($entry_info['#']['COMMENT']['0']['#'])) {
|
||||
$entry->entrycomment = backup_todb($entry_info['#']['COMMENT']['0']['#']);
|
||||
} else {
|
||||
$entry->entrycomment = backup_todb($entry_info['#']['ENTRYCOMMENT']['0']['#']);
|
||||
|
||||
Reference in New Issue
Block a user