d.course AS courseid,
r.id AS itemid,
c.id AS commentid,
- c.content AS comment,
+ c.content AS commentcontent,
c.format AS format,
c.created AS timemodified
FROM {data_comments} c, {data_records} r, {data} d
$cmt->itemid = $res->itemid;
$comment = new comment($cmt);
// comments class will throw an exception if error occurs
- $cmt = $comment->add($res->comment, $res->format);
+ $cmt = $comment->add($res->commentcontent, $res->format);
if (!empty($cmt)) {
$DB->delete_records('data_comments', array('id'=>$res->commentid));
}
g.course AS courseid,
e.id AS itemid,
c.id AS old_id,
- c.entrycomment AS comment,
+ c.entrycomment AS commentcontent,
c.entrycommentformat AS format,
c.entrycommenttrust AS trust,
c.timemodified AS timemodified
$cmt->area = 'glossary_entry';
$cmt->itemid = $res->itemid;
$comment = new comment($cmt);
- $cmt = $comment->add($res->comment, $res->format);
+ $cmt = $comment->add($res->commentcontent, $res->format);
if (!empty($cmt)) {
$DB->delete_records('glossary_comments', array('id'=>$res->old_id));
}