浏览代码

[svn r13591] Removed substringing of objective ID

Yannick Warnier 17 年之前
父节点
当前提交
0fb9b13c41
共有 1 个文件被更改,包括 2 次插入1 次删除
  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" ) {