mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
"DATA/MDL-18024, use rid instead page to comment a record, merged from 1.9"
This commit is contained in:
parent
dfdfe762b1
commit
6b49eb8b72
@ -1453,7 +1453,7 @@ function data_print_comments($data, $record, $page=0, $mform=false) {
|
||||
|
||||
if (!$mform and !$editor) {
|
||||
echo '<div class="newcomment" style="text-align:center">';
|
||||
echo '<a href="view.php?d='.$data->id.'&page='.$page.'&mode=single&addcomment=1">'.get_string('addcomment', 'data').'</a>';
|
||||
echo '<a href="view.php?d='.$data->id.'&rid='.$record->id.'&mode=single&addcomment=1">'.get_string('addcomment', 'data').'</a>';
|
||||
echo '</div>';
|
||||
} else {
|
||||
if (!$mform) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user