[Minor][Scorm] fix configuracion variable name from commit 5360b2d12d -refs BT#18955

pull/3932/head
NicoDucou 4 years ago
parent a875fc5976
commit 5521caebda
  1. 2
      main/install/configuration.dist.php
  2. 2
      main/lp/lp_ajax_save_item.php

@ -1509,7 +1509,7 @@ ALTER TABLE notification_event ADD COLUMN event_id INT NULL;
//$_configuration['scorm_api_extrafield_to_use_as_student_id'] = ''; //$_configuration['scorm_api_extrafield_to_use_as_student_id'] = '';
// LMS will try to update SCO status every time the status is not sent by the SCO // LMS will try to update SCO status every time the status is not sent by the SCO
//$_configuration['scorm_LMS_update_sco_status_all_time'] = false; //$_configuration['scorm_lms_update_sco_status_all_time'] = false;
// Show online user only to Administrators // Show online user only to Administrators
//$_configuration['whoisonline_only_for_admin'] = false; //$_configuration['whoisonline_only_for_admin'] = false;

@ -336,7 +336,7 @@ function save_item(
* that must be adhered to successfully handle these cases:. * that must be adhered to successfully handle these cases:.
*/ */
$LMSUpdateStatus = true; $LMSUpdateStatus = true;
if (!api_get_configuration_value('scorm_LMS_update_status_all_time') && $myLPI->get_status() !== "not attempted") { if (!api_get_configuration_value('scorm_lms_update_status_all_time') && $myLPI->get_status() !== "not attempted") {
$LMSUpdateStatus = false; $LMSUpdateStatus = false;
} }
if (!$statusIsSet && empty($status) && !$statusSignalReceived && $LMSUpdateStatus) { if (!$statusIsSet && empty($status) && !$statusSignalReceived && $LMSUpdateStatus) {

Loading…
Cancel
Save