Project

General

Profile

Bug #7604

My courses tab not highlighted

Added by Yannick Warnier over 4 years ago. Updated over 4 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Category:
Global / Others / Misc
Target version:
Start date:
31/03/2015
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

banner.lib.php dictates (on lines 463 and following) that, if $GLOBALS['this_section'] is set, then if it is the same as the current section element in the menu, it should be added a CSS class "active".

user_portal.php (line 79) sets $this_section to SECTION_COURSES, which should have the consequence to make the "My courses" tab highlight on screen (have the "active" class).

However, no active class is added.
When loading user_portal.php, banner.lib.php reports that $GLOBALS['this_section'] is equal to "global", which is the value of SECTION_GLOBAL, which is only set in global.inc.php (line 383).

I checked quickly but I don't understand why the value set by user_portal.php for $this_section is not kept...

Associated revisions

Revision 5eb26c2a (diff)
Added by Julio Montoya over 4 years ago

Fix tab see #7604

History

#1

Updated by Julio Montoya over 4 years ago

  • Assignee changed from Julio Montoya to Yannick Warnier

Fixed

#2

Updated by Yannick Warnier over 4 years ago

  • Status changed from Assigned to Bug resolved
  • Assignee changed from Yannick Warnier to Julio Montoya
  • % Done changed from 0 to 100

Verified. Thanks!

Also available in: Atom PDF