Bug #1653
sessions and learning path
Description
n a session, I can't see the learning pathes made in basis.
Related issues
History
Updated by claire thibault over 10 years ago
To see the basis' learning path in the sessions :
In main/newscorm/learnpathList.class.php, line 48, replace
$condition_session = api_get_session_condition($session_id, false);
by
$condition_session = api_get_session_condition($session_id, false,true);
Updated by claire thibault over 10 years ago
- add a parameter in the function api_get_item_visibility (main/inc/lib/main_api.lib.php, line 2300) :
function api_get_item_visibility($_course, $tool, $id, $session=0)
- modify main/newscorm/learnpathList.class.php, line 73
api_get_item_visibility(api_get_course_info($course_code),'learnpath',$row['id']*,$session_id*);
Updated by claire thibault over 10 years ago
I was forgetting :
- In main/inc/lib/main_api.lib.php, line 2305 :
$sql = "SELECT visibility FROM $TABLE_ITEMPROPERTY WHERE tool = '$tool' AND ref = $id AND (id_session= $session OR id_session=0) ORDER BY id_session DESC";
- In main/newscorm/lp_list.php, line 303 :
I deleted the test on sessionif ($current_session == $details['lp_session']) {
if ($details['lp_visibility'] <>1 )
[...]
} else {
$dsp_visible = '<img src="../img/invisible.gif" border="0" title="'.get_lang('Show').'" />';
}
Updated by Yannick Warnier over 10 years ago
- Target version set to 1.8.7.1
- % Done changed from 0 to 30
- SCRUM pts - complexity changed from ? to 5
Updated by Yannick Warnier over 10 years ago
- Status changed from New to Bug resolved
- % Done changed from 30 to 100
Applied in http://code.google.com/p/chamilo/source/detail?r=d20bc0f0fad688fefde7d863223ca2a9cce4ca15&repo=classic and http://code.google.com/p/chamilo/source/detail?r=3eca71b0c4b96a5ec0d9059047823fd4d9f9cd9a&repo=classic.
Many thanks! I added you in the credits.html for version 1.8.7.1.