Explorar el Código

Avoid resetting variables if in a simple 'continue' view - for elearningla #scorm

Yannick Warnier hace 13 años
padre
commit
27236217a2
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      main/newscorm/learnpathItem.class.php

+ 3 - 3
main/newscorm/learnpathItem.class.php

@@ -1672,11 +1672,11 @@ class learnpathItem {
 		} else {
 			// Restart current element is allowed (because it's not finished yet),
 			// reinit current.
-			$this->current_score = 0;
+			//$this->current_score = 0;
 			$this->current_start_time = 0;
 			$this->current_stop_time = 0;
-			$this->current_data = '';
-			$this->status = $this->possible_status[0];
+			//$this->current_data = '';
+			//$this->status = $this->possible_status[0];
 			$this->interactions_count = $this->get_interactions_count(true);
       if ($this->type == 'sco') 
         $this->scorm_init_time();