Fixing bug when changing the show_score setting

skala
Julio Montoya 13 years ago
parent e5e62e02e4
commit 289b555a6e
  1. 2
      main/inc/ajax/model.ajax.php
  2. 6
      main/work/work.lib.php

@ -169,8 +169,6 @@ switch ($action) {
} else {
$columns = array('type', 'firstname', 'lastname', 'username', 'sent_date', 'actions');
}
$result = get_work_user_list($start, $limit, $sidx, $sord, $work_id, $where_condition);
break;
case 'get_exercise_results':

@ -331,7 +331,7 @@ function display_student_publications_list($id, $link_target_parameter, $dateFor
$course_id = api_get_course_int_id();
$group_id = api_get_group_id();
$course_info = api_get_course_info();
$course_info = api_get_course_info(api_get_course_id());
$sort_params = array();
@ -1480,7 +1480,7 @@ function get_count_work($work_id) {
$session_id = api_get_session_id();
$course_id = api_get_course_int_id();
$group_id = api_get_group_id();
$course_info = api_get_course_info();
$course_info = api_get_course_info(api_get_course_id());
$work_id = intval($work_id);
if (!empty($group_id)) {
$extra_conditions = " work.post_group_id = '".intval($group_id)."' "; // set to select only messages posted by the user's group
@ -1522,7 +1522,7 @@ function get_work_user_list($start, $limit, $column, $direction, $work_id, $wher
$session_id = api_get_session_id();
$course_id = api_get_course_int_id();
$group_id = api_get_group_id();
$course_info = api_get_course_info();
$course_info = api_get_course_info(api_get_course_id());
$work_id = intval($work_id);
$column = empty($column) ? : Database::escape_string($column);

Loading…
Cancel
Save