From 59c6274628a0ab2c42af11bcae150591a64d6fd3 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 26 Sep 2007 18:42:09 +0200 Subject: [PATCH] [svn r13287] New SCORM and AICC paths are now visible by default --- main/newscorm/aicc.class.php | 1 + main/newscorm/scorm.class.php | 1 + 2 files changed, 2 insertions(+) diff --git a/main/newscorm/aicc.class.php b/main/newscorm/aicc.class.php index 86ffcae80c..c31fc7d28d 100644 --- a/main/newscorm/aicc.class.php +++ b/main/newscorm/aicc.class.php @@ -261,6 +261,7 @@ class aicc extends learnpath { $lp_id = Database::get_last_insert_id(); $this->lp_id = $lp_id; api_item_property_update(api_get_course_info($course_code),TOOL_LEARNPATH,$this->lp_id,'LearnpathAdded',api_get_user_id()); + api_item_property_update(api_get_course_info($course_code),TOOL_LEARNPATH,$this->lp_id,'visible',api_get_user_id()); $previous = 0; foreach($this->aulist as $identifier => $dummy) diff --git a/main/newscorm/scorm.class.php b/main/newscorm/scorm.class.php index 24d2edf750..48eee772c2 100644 --- a/main/newscorm/scorm.class.php +++ b/main/newscorm/scorm.class.php @@ -392,6 +392,7 @@ class scorm extends learnpath { $this->lp_id = $lp_id; //insert into item_property api_item_property_update(api_get_course_info($course_code),TOOL_LEARNPATH,$this->lp_id,'LearnpathAdded',api_get_user_id()); + api_item_property_update(api_get_course_info($course_code),TOOL_LEARNPATH,$this->lp_id,'visible',api_get_user_id()); //now insert all elements from inside that learning path //make sure we also get the href and sco/asset from the resources