]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed a problem with true-false type for correct responses
authorcsantossaenz <csantossaenz>
Tue, 19 Jun 2007 14:56:36 +0000 (14:56 +0000)
committercsantossaenz <csantossaenz>
Tue, 19 Jun 2007 14:56:36 +0000 (14:56 +0000)
mod/scorm/datamodels/scorm_13.js.php

index 39788195fe03800e18c50bf9f5601a4bddbb3f88..fffd175ec4e27e7124a9b88abc8fa62a8796ba90 100644 (file)
@@ -747,7 +747,7 @@ function SCORMapi1_3() {
 
                                                                 matches = nodes[i].match(expression);
                                                                 //if ((matches == null) || (matches.join('').length == 0)) {
-                                                                if (matches == null && value != "") {
+                                                                if ((matches == null && value != "")||(matches == null && interactiontype=="true-false")){
 
                                                                     errorCode = "406";
                                                                 } else {