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