Skip to content

Commit

Permalink
LP: Fix progress not saved in not scorm lps see BT#17951
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Oct 29, 2020
1 parent bf6b031 commit 604b03c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/lp/learnpath.class.php
Expand Up @@ -4929,7 +4929,8 @@ public function save_last($score = null)
// Save progress.
list($progress) = $this->get_progress_bar_text('%');
$scoreAsProgressSetting = api_get_configuration_value('lp_score_as_progress_enable');
if ($scoreAsProgressSetting && (null === $score || empty($score) || -1 == $score)) {
$scoreAsProgress = $this->getUseScoreAsProgress();
if ($scoreAsProgress && $scoreAsProgressSetting && (null === $score || empty($score) || -1 == $score)) {
return false;
}

Expand Down

0 comments on commit 604b03c

Please sign in to comment.