Add status filter BT#16344

pull/4101/head
Julio Montoya 6 years ago
parent 9c817292ba
commit 82e869ffa9
  1. 5
      main/inc/ajax/model.ajax.php
  2. 4
      main/session/session_list.php
  3. 2
      main/session/session_list_simple.php

@ -701,6 +701,11 @@ switch ($action) {
$extraFieldsToLoad[] = $fieldData;
}
}
if ($list_type === 'custom') {
$whereCondition .= ' AND (s.status IN ("'.SessionManager::STATUS_PLANNED.'", "'.SessionManager::STATUS_PROGRESS.'") ) ';
}
if ($list_type === 'simple' || $list_type === 'custom') {
$count = SessionManager::get_sessions_admin(
['where' => $whereCondition, 'extra' => $extra_fields],

@ -52,11 +52,9 @@ $actions = '
$(function() {
$("#course_name").on("change", function() {
var courseId = $(this).val();
if (!courseId) {
return;
return;
}
window.location = "'.$url.'?course_id="+courseId;
});
});

@ -17,7 +17,7 @@ $htmlHeadXtra[] = api_get_jqgrid_js();
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : null;
$idChecked = isset($_REQUEST['idChecked']) ? $_REQUEST['idChecked'] : null;
$list_type = isset($_REQUEST['list_type']) ? $_REQUEST['list_type'] : 'custom';
$list_type = isset($_REQUEST['list_type']) ? $_REQUEST['list_type'] : 'simple';
$tool_name = get_lang('SessionList');
Display::display_header($tool_name);

Loading…
Cancel
Save