From 5b05845be124aa6151cb0a7bec3634aa08b66c23 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 22 Nov 2012 13:06:06 +0100 Subject: [PATCH] Adding Yannick's scorm fix just for tests see BT#5198 --- main/newscorm/learnpathItem.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/newscorm/learnpathItem.class.php b/main/newscorm/learnpathItem.class.php index 11450165e2..b0dfd42f05 100644 --- a/main/newscorm/learnpathItem.class.php +++ b/main/newscorm/learnpathItem.class.php @@ -1988,13 +1988,14 @@ class learnpathItem { } // If mastery_score is set AND the current score reaches the mastery score AND the current status is different from 'completed', then set it to 'passed'. + /* if ($master != -1 && $this->current_score >= $master && $current_status != $this->possible_status[2]) { if ($debug > 0) error_log('Status changed to: '.$this->possible_status[3]); $this->set_status($this->possible_status[3]); //passed } elseif ($master != -1 && $this->current_score < $master) { if ($debug > 0) error_log('Status changed to: '.$this->possible_status[4]); $this->set_status($this->possible_status[4]); //failed - } + }*/ return true; } return false;