Skip to content

Commit

Permalink
MDL-30828 mod_feedback: fixed sorting when viewing responses
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjdavis committed Jan 20, 2012
1 parent 269c884 commit 04d9550
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/feedback/lib.php
Expand Up @@ -958,7 +958,7 @@ function feedback_get_complete_users($cm,
}

$ufields = user_picture::fields('u');
$sql = 'SELECT DISTINCT '.$ufields.'
$sql = 'SELECT DISTINCT '.$ufields.', c.timemodified as completed_timemodified
FROM {user} u, {feedback_completed} c '.$fromgroup.'
WHERE '.$where.' anonymous_response = :anon
AND u.id = c.userid
Expand Down
2 changes: 1 addition & 1 deletion mod/feedback/show_entries.php
Expand Up @@ -122,7 +122,7 @@
$baseurl = new moodle_url('/mod/feedback/show_entries.php');
$baseurl->params(array('id'=>$id, 'do_show'=>$do_show, 'showall'=>$showall));

$tablecolumns = array('userpic', 'fullname', 'c.timemodified');
$tablecolumns = array('userpic', 'fullname', 'completed_timemodified');
$tableheaders = array(get_string('userpic'), get_string('fullnameuser'), get_string('date'));

if (has_capability('mod/feedback:deletesubmissions', $context)) {
Expand Down

0 comments on commit 04d9550

Please sign in to comment.