Browse Source

Save register log when saving an event see BT#15020

Julio 6 years ago
parent
commit
f218219115
1 changed files with 9 additions and 0 deletions
  1. 9 0
      main/lp/lp_ajax_save_item.php

+ 9 - 0
main/lp/lp_ajax_save_item.php

@@ -491,6 +491,15 @@ function save_item(
         $return .= "update_stats();";
     }
 
+    $logInfo = [
+        'tool' => TOOL_LEARNPATH,
+        'tool_id' => $myLP->get_id(),
+        'tool_id_detail' => $myLP->get_current_item_id(),
+        'action' => 'save_item',
+        'info' => '',
+    ];
+    Event::registerLog($logInfo);
+
     // To be sure progress is updated.
     $myLP->save_last();