Explorar el Código

[svn r13591] Removed substringing of objective ID

Yannick Warnier hace 17 años
padre
commit
0fb9b13c41
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      main/newscorm/scorm_api.php

+ 2 - 1
main/newscorm/scorm_api.php

@@ -515,7 +515,8 @@ function LMSSetValue(param, val) {
 						item_objectives[obj_id] = ['','','','',''];
 					}
 					if( req_type == "id" ) {
-							item_objectives[obj_id][0] = val.substring(51,57);
+							//item_objectives[obj_id][0] = val.substring(51,57);
+							item_objectives[obj_id][0] = val;
 							logit_scorm("Objective "+obj_id+"'s id updated",2);
 							return_value = 'true';
 					} else if ( req_type == "score" ) {