MDL-7323 AICC Import does not handle Core_Vendor - applied patch from Keith Starling...
authorpiers <piers>
Wed, 23 Jul 2008 01:32:12 +0000 (01:32 +0000)
committerpiers <piers>
Wed, 23 Jul 2008 01:32:12 +0000 (01:32 +0000)
mod/scorm/datamodels/aicclib.php

index 08878c6..3107ed0 100644 (file)
@@ -282,6 +282,11 @@ function scorm_parse_aicc($pkgdir,$scormid) {
                                 $scodata->value = $element->mastery_score;
                                 $dataid = $DB->insert_record('scorm_scoes_data',$scodata);
                             }
+                            if (isset($element->core_vendor)) {
+                                $scodata->name = 'datafromlms';
+                                $scodata->value = eregi_replace('<cr>', "\r\n", $element->core_vendor);
+                                $dataid = insert_record('scorm_scoes_data',$scodata);
+                            }
                         }
                         if ($launch==0) {
                             $launch = $id;