Project

General

Profile

Bug #1653

sessions and learning path

Added by claire thibault about 9 years ago. Updated almost 9 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
-
Target version:
Start date:
28/06/2010
Due date:
% Done:

100%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
5

Description

n a session, I can't see the learning pathes made in basis.


Related issues

Related to Chamilo LMS - Bug #1599: sessions and tools behaviours Needs more info22/06/2010

Actions

History

#1

Updated by claire thibault about 9 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);
#2

Updated by claire thibault about 9 years ago

To control the visibility of the learning pathes :
  • 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*);
#3

Updated by claire thibault about 9 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 session

    if ($current_session == $details['lp_session']) {
    if ($details['lp_visibility'] <>1 )
    [...]
    } else {
    $dsp_visible = '<img src="../img/invisible.gif" border="0" title="'.get_lang('Show').'" />';
    }

#4

Updated by Yannick Warnier about 9 years ago

  • Target version set to 1.8.7.1
  • % Done changed from 0 to 30
  • SCRUM pts - complexity changed from ? to 5
#5

Updated by Yannick Warnier almost 9 years ago

  • Status changed from New to Bug resolved
  • % Done changed from 30 to 100
#6

Updated by Yannick Warnier almost 9 years ago

  • Assignee set to Yannick Warnier

Also available in: Atom PDF