]> git.mjollnir.org Git - moodle.git/commitdiff
"DATA/MDL-18024, use rid instead page to comment a record, merged from 1.9"
authordongsheng <dongsheng>
Wed, 11 Mar 2009 05:33:55 +0000 (05:33 +0000)
committerdongsheng <dongsheng>
Wed, 11 Mar 2009 05:33:55 +0000 (05:33 +0000)
mod/data/lib.php

index 1c4833c5d6481bf40d00e8daf714535d8d7511ea..d12dd6f27927ef9b3d1965977858a5bfcc393e09 100755 (executable)
@@ -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.'&amp;page='.$page.'&amp;mode=single&amp;addcomment=1">'.get_string('addcomment', 'data').'</a>';
+        echo '<a href="view.php?d='.$data->id.'&amp;rid='.$record->id.'&amp;mode=single&amp;addcomment=1">'.get_string('addcomment', 'data').'</a>';
         echo '</div>';
     } else {
         if (!$mform) {