BUG-11984 No se muestra el menu horizontal en el case tracker... SOLVED

- No was initiated one variable properly.
- Was add validation.
This commit is contained in:
Marco Antonio Nina
2013-05-24 12:38:57 -04:00
parent 1723ba968e
commit b2076491c5
2 changed files with 11 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
<td id="pm_header" valign="top">
<table width="100%" height="32" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
{if $user_logged neq ''}
{if $user_logged neq '' or $tracker neq ''}
<td width="50%" rowspan="2" valign="center"><img src="{$logo_company}"/></td>
<td width="50%" height="16" align="right" valign="top">
<div align="right" class="logout">
@@ -44,7 +44,7 @@
<td>
<table width="100%" cellspacing="0" cellpadding="0" border="0" >
<tr>
{if $user_logged neq ''}
{if $user_logged neq '' or $tracker neq ''}
<td width="100%" class="mainMenuBG" style="height:25px">
{include file="$tpl_menu"}
</td>

View File

@@ -712,7 +712,16 @@ class SkinEngine
if (NO_DISPLAY_USERNAME == 0) {
$switch_interface = isset($_SESSION['user_experience']) && $_SESSION['user_experience'] == 'SWITCHABLE';
$tacker = '';
foreach ($menus as $kye => $tab) {
if (strpos($tab['target'], 'tracker') !== false ) {
$tacker = true;
break;
}
}
$smarty->assign('user_logged', (isset($_SESSION['USER_LOGGED'])? $_SESSION['USER_LOGGED'] : ''));
$smarty->assign('tracker', $tacker);
$smarty->assign('switch_interface', $switch_interface);
$smarty->assign('switch_interface_label', G::LoadTranslation('ID_SWITCH_INTERFACE'));
$smarty->assign('rolename', isset($_SESSION['USR_ROLENAME']) ? $_SESSION['USR_ROLENAME'] . '' : '');