Skip to content

Commit

Permalink
fixed: missing required_param id for delete_completed.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Grabs committed Apr 30, 2010
1 parent cb3dcd7 commit 74be01e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/feedback/show_entries.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
if($do_show == 'showoneentry') {
//get the feedbackitems
$feedbackitems = $DB->get_records('feedback_item', array('feedback'=>$feedback->id), 'position');
$feedbackcompleted = $DB->get_record('feedback_completed', array('feedback'=>$feedback->id, 'userid'=>$formdata->userid, 'anonymous_response'=>FEEDBACK_ANONYMOUS_NO)); //arb
$feedbackcompleted = $DB->get_record('feedback_completed', array('feedback'=>$feedback->id, 'userid'=>$userid, 'anonymous_response'=>FEEDBACK_ANONYMOUS_NO)); //arb
}

/// Print the page header
Expand Down Expand Up @@ -164,7 +164,7 @@
?>
<td align="right">
<?php
$aurl = new moodle_url($url, array('sesskey'=>sesskey(), 'completedid'=>$feedbackcompleted->id, 'do_show'=>'showoneentry'));
$aurl = new moodle_url($CFG->wwwroot.'/mod/feedback/delete_completed.php', array('sesskey'=>sesskey(), 'id'=>$cm->id, 'completedid'=>$feedbackcompleted->id, 'do_show'=>'showoneentry'));
echo $OUTPUT->single_button($aurl, get_string('delete_entry', 'feedback'));
?>
</td>
Expand Down Expand Up @@ -206,7 +206,7 @@

//print the items
if(is_array($feedbackitems)){
$usr = $DB->get_record('user', array('id'=>$formdata->userid));
$usr = $DB->get_record('user', array('id'=>$userid));
if($feedbackcompleted) {
echo '<p align="center">'.UserDate($feedbackcompleted->timemodified).'<br />('.fullname($usr).')</p>';
} else {
Expand Down

0 comments on commit 74be01e

Please sign in to comment.