Browse Source

[svn r13591] Removed substringing of objective ID

Yannick Warnier 17 năm trước cách đây
mục cha
commit
0fb9b13c41
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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" ) {