Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-21761 - fix the statefulness of saving dataelements in scorm api 1.2

  • Loading branch information...
commit b6ec0e79401db7af755e16d1ba60a0360d8744b2 1 parent 939c648
Piers Harding authored June 27, 2010

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  mod/scorm/datamodels/scorm_12.js.php
2  mod/scorm/datamodels/scorm_12.js.php
@@ -564,9 +564,11 @@ function CollectData(data,parent) {
564 564
                             if ((typeof eval('datamodel["'+elementmodel+'"].defaultvalue')) != "undefined") {
565 565
                                 if (eval('datamodel["'+elementmodel+'"].defaultvalue') != data[property] || eval('typeof(datamodel["'+elementmodel+'"].defaultvalue)') != typeof(data[property])) {
566 566
                                     datastring += elementstring;
  567
+                                    eval('datamodel["'+elementmodel+'"].defaultvalue=data[property];');
567 568
                                 }
568 569
                             } else {
569 570
                                 datastring += elementstring;
  571
+                                eval('datamodel["'+elementmodel+'"].defaultvalue=data[property];');
570 572
                             }
571 573
                         }
572 574
                     }

0 notes on commit b6ec0e7

Please sign in to comment.
Something went wrong with that request. Please try again.