Hi,
The following is the code that is generated by the Studio when i create a new "History" Tab.
TabConfig.php
Code:
<?php
// created: 2010-02-02 04:11:22
$GLOBALS['tabStructure'] = array (
'LBL_TABGROUP_HOME' =>
array (
'label' => 'LBL_TABGROUP_HOME',
'modules' =>
array (
0 => 'Home',
1 => 'Dashboard',
),
),
'LBL_TABGROUP_TOOLS' =>
array (
'label' => 'LBL_TABGROUP_TOOLS',
'modules' =>
array (
0 => 'Feeds',
1 => 'iFrames',
),
),
'LBL_TABGROUP_REPORTS' =>
array (
'label' => 'LBL_TABGROUP_REPORTS',
'modules' =>
array (
0 => 'undefined',
1 => 'Dashboard',
),
),
'LBL_GROUPTAB3_1265004998' =>
array (
'label' => 'LBL_GROUPTAB3_1265004998',
'modules' =>
array (
0 => 'Calendar',
1 => 'Emails',
2 => 'Meetings',
3 => 'Tasks',
4 => 'Notes',
5 => 'Calls',
),
),
'LBL_GROUPTAB5_1265004998' =>
array (
'label' => 'LBL_GROUPTAB5_1265004998',
'modules' =>
array (
0 => 'Activities',
1 => 'Calendar',
2 => 'Emails',
3 => 'Meetings',
4 => 'Tasks',
5 => 'Notes',
6 => 'Calls',
),
),
);
?> I then changed the following code in SubPanelTilesTab.php
Previous code
Code:
/* Move history to same tab as activities */
if(in_array('history', $tabs) && in_array('activities', $tabs))
{
foreach($groups as $mainTab => $group)
{
if(in_array('activities', array_map('strtolower', $group['modules'])))
{
if(!in_array('history', array_map('strtolower', $group['modules'])))
{
/* Move hist from there to here */
$groups[$mainTab]['modules'] []= 'history';
}
}
else if(false !== ($i = array_search('history', array_map('strtolower', $group['modules']))))
{
unset($groups[$mainTab]['modules'][$i]);
if(empty($groups[$mainTab]['modules']))
{
unset($groups[$mainTab]);
}
}
}
} Changed Code
Code:
/* Move history to same tab as activities */
if(in_array('history', $tabs) && in_array('activities', $tabs))
{
foreach($groups as $mainTab => $group)
{
/*
* Commented the following code for not adding the history to where activities is present.
*/
// if(in_array('activities', array_map('strtolower', $group['modules'])))
// {
// if(!in_array('history', array_map('strtolower', $group['modules'])))
// {
// /* Move hist from there to here */
// $groups[$mainTab]['modules'] []= 'history';
// }
// }
// else if(false !== ($i = array_search('history', array_map('strtolower', $group['modules']))))
// {
// unset($groups[$mainTab]['modules'][$i]);
// if(empty($groups[$mainTab]['modules']))
// {
// unset($groups[$mainTab]);
// }
// }
// Code added to assign history to "History" Tab
if ($mainTab == "History")
{
$groups[$mainTab]['modules'] []= 'history';
}
}
} These are the only changes that i did. Even when i rollbacked the issue still persists.. Please help me out..
Thanks
Bookmarks