예제 #1
0
 public function testUpgradeDisplayedTabsAndSubpanels()
 {
     $modules_to_add = array('Calls', 'Meetings', 'Tasks', 'Notes', 'Prospects', 'ProspectLists');
     upgradeDisplayedTabsAndSubpanels('610');
     $all_tabs = $this->_tc->get_tabs_system();
     $tabs = $all_tabs[0];
     foreach ($modules_to_add as $module) {
         $this->assertTrue(isset($tabs[$module]), 'Assert that ' . $module . ' tab is set for system tabs');
     }
 }
예제 #2
0
{
    repair_long_relationship_names($path);
}
*/
//Global search support
/*
if($_SESSION['current_db_version'] < '620' && function_exists('add_unified_search_to_custom_modules_vardefs'))
{
   logThis('Add global search for custom modules start .', $path);
   add_unified_search_to_custom_modules_vardefs();
   logThis('Add global search for custom modules finished .', $path);
}
*/
//Upgrade system displayed tabs and subpanels
if (function_exists('upgradeDisplayedTabsAndSubpanels')) {
    upgradeDisplayedTabsAndSubpanels($_SESSION['current_db_version']);
}
//Unlink files that have been removed
if (function_exists('unlinkUpgradeFiles')) {
    unlinkUpgradeFiles($_SESSION['current_db_version']);
}
if (function_exists('rebuildSprites') && function_exists('imagecreatetruecolor')) {
    rebuildSprites(true);
}
require_once 'modules/Administration/upgrade_custom_relationships.php';
upgrade_custom_relationships();
require_once 'modules/UpgradeWizard/uw_utils.php';
/*
if($_SESSION['current_db_version'] < '620')
{
	upgradeDateTimeFields($path);
예제 #3
0
logThis('End merge_config_si_settings', $path);
//Upgrade connectors
logThis('Begin upgrade_connectors', $path);
upgrade_connectors();
logThis('End upgrade_connectors', $path);
// Enable the InsideView connector by default
if ($origVersion < '621' && function_exists('upgradeEnableInsideViewConnector')) {
    logThis("Looks like we need to enable the InsideView connector\n", $path);
    upgradeEnableInsideViewConnector($path);
}
//bug: 36845 - ability to provide global search support for custom modules
/*
*/
//Upgrade system displayed tabs and subpanels
if (function_exists('upgradeDisplayedTabsAndSubpanels')) {
    upgradeDisplayedTabsAndSubpanels($origVersion);
}
//Unlink files that have been removed
if (function_exists('unlinkUpgradeFiles')) {
    unlinkUpgradeFiles($origVersion);
}
if (function_exists('rebuildSprites') && function_exists('imagecreatetruecolor')) {
    rebuildSprites(true);
}
//Run repairUpgradeHistoryTable
if ($origVersion < '650' && function_exists('repairUpgradeHistoryTable')) {
    repairUpgradeHistoryTable();
}
///////////////////////////////////////////////////////////////////////////////
////	TAKE OUT TRASH
if (empty($errors)) {