Remove current_id = 0 see BT#15020

pull/2821/head
Julio 7 years ago
parent be0fdddb0a
commit f3a47d4f92
  1. 3
      main/announcements/announcements.php
  2. 2
      main/auth/profile.php
  3. 2
      main/chat/chat.php
  4. 3
      main/dropbox/index.php
  5. 1
      main/exercise/exercise.php
  6. 2
      main/exercise/exercise_submit.php
  7. 2
      main/exercise/overview.php
  8. 9
      main/forum/forumfunction.inc.php
  9. 1
      main/forum/index.php
  10. 1
      main/forum/newthread.php
  11. 1
      main/forum/reply.php
  12. 1
      main/forum/viewforum.php
  13. 1
      main/forum/viewthread.php
  14. 4
      main/gradebook/gradebook_add_cat.php
  15. 4
      main/gradebook/gradebook_add_eval.php
  16. 4
      main/gradebook/gradebook_add_link.php
  17. 2
      main/gradebook/gradebook_edit_all.php
  18. 2
      main/gradebook/gradebook_edit_cat.php
  19. 2
      main/gradebook/gradebook_edit_eval.php
  20. 2
      main/gradebook/gradebook_edit_link.php
  21. 2
      main/gradebook/index.php
  22. 2
      main/gradebook/my_certificates.php
  23. 1
      main/inc/ajax/course_chat.ajax.php
  24. 12
      main/inc/lib/tracking.lib.php
  25. 2
      main/messages/inbox.php
  26. 2
      main/messages/new_message.php
  27. 2
      main/messages/outbox.php
  28. 2
      main/messages/view_message.php
  29. 2
      main/mySpace/index.php
  30. 2
      main/notebook/index.php
  31. 2
      main/survey/fillsurvey.php
  32. 2
      main/survey/survey_list.php
  33. 2
      main/work/work.php
  34. 1
      plugin/bbb/start.php

@ -98,9 +98,6 @@ $logInfo = [
'tool_id' => 0,
'tool_id_detail' => 0,
'action' => $action,
'action_details' => '',
'current_id' => (int) $announcement_id,
'info' => '',
];
Event::registerLog($logInfo);

@ -26,8 +26,6 @@ $logInfo = [
'tool_id' => 0,
'tool_id_detail' => 0,
'action' => $this_section,
'action_details' => '',
'current_id' => 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -15,8 +15,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => 'start',
'action_details' => 'start-chat',
'current_id' => 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -32,9 +32,6 @@ $logInfo = [
'tool_id' => 0,
'tool_id_detail' => 0,
'action' => $action,
'action_details' => '',
'current_id' => isset($_REQUEST['id']) ? (int) $_REQUEST['id'] : 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -162,7 +162,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => isset($_REQUEST['learnpath_id']) ? 'learnpath_id' : '',
'action_details' => isset($_REQUEST['learnpath_id']) ? (int) $_REQUEST['learnpath_id'] : '',
'current_id' => 0,
];
Event::registerLog($logInfo);

@ -102,8 +102,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => ((int) $_REQUEST['learnpath_id'] > 0) ? 'learnpath_id' : '',
'action_details' => ((int) $_REQUEST['learnpath_id'] > 0) ? (int) $_REQUEST['learnpath_id'] : '',
'current_id' => $current_question,
'info' => '',
];
Event::registerLog($logInfo);

@ -45,8 +45,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => isset($_REQUEST['learnpath_id']) ? 'learnpath_id' : '',
'action_details' => isset($_REQUEST['learnpath_id']) ? (int) $_REQUEST['learnpath_id'] : '',
'current_id' => 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -621,7 +621,6 @@ function store_forumcategory($values, $courseInfo = [], $showMessage = true)
'tool_id_detail' => 0,
'action' => 'update-forumcategory',
'action_details' => 'forumcategory',
'current_id' => $values['forum_category_id'],
'info' => $clean_cat_title,
];
Event::registerLog($logInfo);
@ -663,7 +662,6 @@ function store_forumcategory($values, $courseInfo = [], $showMessage = true)
'tool_id_detail' => 0,
'action' => 'new-forumcategory',
'action_details' => 'forumcategory',
'current_id' => $last_id,
'info' => $clean_cat_title,
];
Event::registerLog($logInfo);
@ -868,7 +866,6 @@ function store_forum($values, $courseInfo = [], $returnId = false)
'tool_id_detail' => 0,
'action' => 'update-forum',
'action_details' => 'forum',
'current_id' => $values['forum_id'],
'info' => $values['forum_title'],
];
Event::registerLog($logInfo);
@ -927,7 +924,6 @@ function store_forum($values, $courseInfo = [], $returnId = false)
'tool_id_detail' => 0,
'action' => 'new-forum',
'action_details' => 'forum',
'current_id' => $forumId,
'info' => $values['forum_title'],
];
Event::registerLog($logInfo);
@ -2661,7 +2657,6 @@ function updateThread($values)
'tool_id_detail' => $values['thread_id'],
'action' => 'edit-thread',
'action_details' => 'thread',
'current_id' => $values['thread_id'],
'info' => $values['thread_title'],
];
Event::registerLog($logInfo);
@ -2917,7 +2912,6 @@ function store_thread(
'tool_id_detail' => $lastThread->getIid(),
'action' => 'new-thread',
'action_details' => '',
'current_id' => $lastThread->getIid(),
'info' => $clean_post_title,
];
Event::registerLog($logInfo);
@ -2957,7 +2951,6 @@ function store_thread(
'tool_id_detail' => $lastThread->getIid(),
'action' => 'new-post',
'action_details' => '',
'current_id' => $lastPostId,
'info' => $clean_post_title,
];
Event::registerLog($logInfo);
@ -3766,7 +3759,6 @@ function store_reply($current_forum, $values, $courseId = 0, $userId = 0)
'tool_id_detail' => $values['thread_id'],
'action' => 'new-post',
'action_details' => $values['action'],
'current_id' => $new_post_id,
'info' => $values['post_title'],
];
Event::registerLog($logInfo);
@ -3963,7 +3955,6 @@ function store_edit_post($forumInfo, $values)
'tool_id_detail' => $values['thread_id'],
'action' => 'edit-post',
'action_details' => 'post',
'current_id' => $values['post_id'],
'info' => $values['post_title'],
];
Event::registerLog($logInfo);

@ -128,7 +128,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => !empty($actions) ? $actions : 'list-category',
'action_details' => isset($_GET['content']) ? $_GET['content'] : '',
'current_id' => isset($_GET['id']) ? $_GET['id'] : 0,
];
Event::registerLog($logInfo);

@ -51,7 +51,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => 'add-thread',
'action_details' => '',
'current_id' => 0,
];
Event::registerLog($logInfo);

@ -161,7 +161,6 @@ $logInfo = [
'tool_id_detail' => $threadId,
'action' => !empty($my_action) ? $my_action : 'reply',
'action_details' => '',
'current_id' => $my_post,
];
Event::registerLog($logInfo);

@ -109,7 +109,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => !empty($my_action) ? $my_action : 'list-threads',
'action_details' => isset($_GET['content']) ? $_GET['content'] : '',
'current_id' => isset($_GET['id']) ? $_GET['id'] : 0,
];
Event::registerLog($logInfo);

@ -132,7 +132,6 @@ $logInfo = [
'tool_id_detail' => $_GET['thread'],
'action' => !empty($my_action) ? $my_action : 'view-thread',
'action_details' => isset($_GET['content']) ? $_GET['content'] : '',
'current_id' => isset($_GET['id']) ? $_GET['id'] : 0,
];
Event::registerLog($logInfo);

@ -96,8 +96,6 @@ if ($form->validate()) {
'tool_id_detail' => 0,
'action' => 'new-cat',
'action_details' => 'parent_id='.$cat->get_parent_id(),
'current_id' => $cat->get_id(),
'info' => '',
];
Event::registerLog($logInfo);
@ -111,8 +109,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => 'add-cat',
'action_details' => Category::getUrl().'selectcat='.$get_select_cat,
'current_id' => $current_id,
'info' => '',
];
Event::registerLog($logInfo);

@ -71,8 +71,6 @@ if ($form->validate()) {
'tool_id_detail' => 0,
'action' => 'new-eval',
'action_details' => 'selectcat='.$eval->get_category_id(),
'current_id' => $eval->get_id(),
'info' => '',
];
Event::registerLog($logInfo);
@ -103,8 +101,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => 'add-eval',
'action_details' => 'selectcat='.$select_cat,
'current_id' => 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -138,8 +138,6 @@ if (isset($typeSelected) && $typeSelected != '0') {
'tool_id_detail' => 0,
'action' => 'new-link',
'action_details' => 'selectcat='.$selectCat,
'current_id' => $link->get_id(),
'info' => '',
];
Event::registerLog($logInfo);
@ -167,8 +165,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => 'add-link',
'action_details' => 'selectcat='.$selectCat,
'current_id' => $current_id,
'info' => '',
];
Event::registerLog($logInfo);

@ -33,8 +33,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => 'edit-weight',
'action_details' => $action_details,
'current_id' => $my_selectcat,
'info' => '',
];
Event::registerLog($logInfo);

@ -98,8 +98,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => 'edit-cat',
'action_details' => $action_details,
'current_id' => $current_id,
'info' => '',
];
Event::registerLog($logInfo);

@ -51,8 +51,6 @@ if ($form->validate()) {
'tool_id_detail' => 0,
'action' => 'edit-eval',
'action_details' => '',
'current_id' => $eval->get_category_id(),
'info' => '',
];
Event::registerLog($logInfo);

@ -111,8 +111,6 @@ if ($form->validate()) {
'tool_id_detail' => 0,
'action' => 'edit-link',
'action_details' => '',
'current_id' => $_GET['editlink'],
'info' => '',
];
Event::registerLog($logInfo);

@ -119,8 +119,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => $my_actions,
'action_details' => $my_actions_values,
'current_id' => 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -18,8 +18,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => '',
'action_details' => '',
'current_id' => 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -25,7 +25,6 @@ switch ($_REQUEST['action']) {
'tool_id_detail' => 0,
'action' => 'exit',
'action_details' => 'exit-chat',
'current_id' => 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -6837,17 +6837,7 @@ class Tracking
$lpTime[$item['tool_id']] = 0;
}
$lpTime[$item['tool_id']] += $partialTime;
if ($item['tool_id'] == 51) {
//$counter++;
//var_dump($beforeItem, $item);
/*var_dump(
api_get_utc_datetime($item['date_reg']),
api_get_utc_datetime($beforeItem['date_reg'])
);*/
/*var_dump(
$counter.'-'.$beforeItem['id'].'-'.$item['id'].'-'.$partialTime.'-'.api_time_to_hms($lpTime[$item['tool_id']])
);*/
}
break;
case TOOL_QUIZ:
if (!isset($lpTime[$item['action_details']])) {

@ -20,8 +20,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => isset($_GET['action']) ? $_GET['action'] : 'inbox',
'action_details' => '',
'current_id' => isset($_GET['id']) ? (int) $_GET['id'] : 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -28,8 +28,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => 'new_message',
'action_details' => isset($_GET['re_id']) ? 're_id' : '',
'current_id' => isset($_GET['re_id']) ? (int) $_GET['re_id'] : 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -19,8 +19,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => isset($_GET['action']) ? $_GET['action'] : 'outbox',
'action_details' => '',
'current_id' => isset($_REQUEST['id']) ? (int) $_REQUEST['id'] : 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -53,8 +53,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => $source,
'action_details' => 'view-message',
'current_id' => $messageId,
'info' => '',
];
Event::registerLog($logInfo);

@ -43,8 +43,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => '',
'action_details' => '',
'current_id' => 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -45,8 +45,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => $action,
'action_details' => '',
'current_id' => isset($_REQUEST['notebook_id']) ? (int) $_REQUEST['notebook_id'] : 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -166,8 +166,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => 'invitationcode',
'action_details' => $invitationcode,
'current_id' => 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -34,8 +34,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => '',
'action_details' => '',
'current_id' => 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -126,8 +126,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => $action,
'action_details' => '',
'current_id' => isset($_REQUEST['id']) ? (int) $_REQUEST['id'] : 0,
'info' => '',
];
Event::registerLog($logInfo);

@ -17,7 +17,6 @@ $logInfo = [
'tool_id_detail' => 0,
'action' => '',
'action_details' => '',
'current_id' => 0,
];
Event::registerLog($logInfo);

Loading…
Cancel
Save