From 2234d06bf2423070f8c03a6b2e99fcfd08c47b25 Mon Sep 17 00:00:00 2001 From: Julio Date: Thu, 19 Oct 2017 21:55:06 +0200 Subject: [PATCH] WIP: If time is not set then update the stop time. So total time is calculated correctly and changes instead of always saving 0. see BT13554 --- main/lp/lp_ajax_save_item.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/lp/lp_ajax_save_item.php b/main/lp/lp_ajax_save_item.php index d18954bbb3..eb18a6a666 100755 --- a/main/lp/lp_ajax_save_item.php +++ b/main/lp/lp_ajax_save_item.php @@ -368,6 +368,8 @@ function save_item( } $myLPI->set_time($time, 'scorm'); } + } else { + $myLPI->current_stop_time = time(); } if (isset($suspend) && $suspend != '' && $suspend != 'undefined') {