Skip to content

Commit

Permalink
Fixed problem with cmi.interactions.n.id duplicated ids
Browse files Browse the repository at this point in the history
  • Loading branch information
csantossaenz committed May 29, 2007
1 parent 6cc1a80 commit ef24d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/scorm/datamodels/scorm_13.js.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ function SetValue (element,value) {
parentmodel = 'cmi.interactions'; parentmodel = 'cmi.interactions';
if (subelement.substr(0,parentmodel.length) == parentmodel) { if (subelement.substr(0,parentmodel.length) == parentmodel) {
if ((elementmodel==parentmodel+'.n.id') && (errorCode=="0")) { if ((elementmodel==parentmodel+'.n.id') && (errorCode=="0")) {
if (eval(element) != value) { if (eval(element) == value) {
errorCode = "351"; errorCode = "351";
diagnostic = "Write Once Violation"; diagnostic = "Write Once Violation";
} }
Expand Down

0 comments on commit ef24d5b

Please sign in to comment.