Index: temp_moodle_dev/moodle/mod/glossary/comment.php =================================================================== diff -u -r5063e98cf451d2bd9e9c25464a397ce6d0e405e5 -r587c0e61fc21b94cd096a9a66858a47be3e27d7a --- temp_moodle_dev/moodle/mod/glossary/comment.php (.../comment.php) (revision 5063e98cf451d2bd9e9c25464a397ce6d0e405e5) +++ temp_moodle_dev/moodle/mod/glossary/comment.php (.../comment.php) (revision 587c0e61fc21b94cd096a9a66858a47be3e27d7a) @@ -72,9 +72,12 @@ if (!$newcomment->id = insert_record('glossary_comments', $newcomment)) { error('Could not insert this new comment'); } else { + if($cm->is_lams==1){ + $next=1;//lams: variable we pass to the view page to tell it that there is a new entry + } add_to_log($course->id, 'glossary', 'add comment', "comments.php?id=$cm->id&eid=$entry->id", "$newcomment->id", $cm->id); } - redirect("comments.php?id=$cm->id&eid=$entry->id"); + redirect("comments.php?id=$cm->id&eid=$entry->id&next=$next"); } else { glossary_comment_print_header($course, $cm, $glossary, $entry, 'add');