mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-30828 mod_feedback: fixed sorting when viewing responses
This commit is contained in:
parent
216f6d8e9d
commit
a5448b3f6b
2 changed files with 2 additions and 2 deletions
|
@ -958,7 +958,7 @@ function feedback_get_complete_users($cm,
|
||||||
}
|
}
|
||||||
|
|
||||||
$ufields = user_picture::fields('u');
|
$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.'
|
FROM {user} u, {feedback_completed} c '.$fromgroup.'
|
||||||
WHERE '.$where.' anonymous_response = :anon
|
WHERE '.$where.' anonymous_response = :anon
|
||||||
AND u.id = c.userid
|
AND u.id = c.userid
|
||||||
|
|
|
@ -122,7 +122,7 @@ if ($do_show == 'showentries') {
|
||||||
$baseurl = new moodle_url('/mod/feedback/show_entries.php');
|
$baseurl = new moodle_url('/mod/feedback/show_entries.php');
|
||||||
$baseurl->params(array('id'=>$id, 'do_show'=>$do_show, 'showall'=>$showall));
|
$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'));
|
$tableheaders = array(get_string('userpic'), get_string('fullnameuser'), get_string('date'));
|
||||||
|
|
||||||
if (has_capability('mod/feedback:deletesubmissions', $context)) {
|
if (has_capability('mod/feedback:deletesubmissions', $context)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue