Rename the column name category_name - refs BT#7972

1.9.x
Francis Gonzales 12 years ago
parent ec220640bb
commit 0f56b21681
  1. 6
      main/inc/ajax/model.ajax.php

@ -257,6 +257,7 @@ switch ($action) {
break;
case 'get_sessions':
$courseId = isset($_GET['course_id']) && !empty($_GET['course_id']) ? intval($_GET['course_id']) : null;
$where_condition = str_replace('category_name', 'sc.name', $where_condition);
if (!empty($courseId)) {
$where_condition .= " c.id = $courseId";
}
@ -617,7 +618,10 @@ switch ($action) {
$columns = array(
'name', 'nbr_courses', 'nbr_users', 'category_name', 'date_start','date_end', 'coach_name', 'session_active', 'visibility'
);
//Rename Category_name
$where_condition = str_replace('category_name', 'sc.name', $where_condition);
$result = SessionManager::get_sessions_admin(
array(
'where' => $where_condition,

Loading…
Cancel
Save