Skip to content
Snippets Groups Projects
Commit f8af6f25 authored by Satish's avatar Satish
Browse files

Fixes #678 - vt7 migration didn't create entry in vtiger_app2tab for Extension module

parent f247850f
No related branches found
No related tags found
2 merge requests!311Language italian translation,!292Fixes #678 - vt7 migration didn't create entry in vtiger_app2tab for Extension module
......@@ -239,6 +239,25 @@ if (defined('VTIGER_UPGRADE')) {
}
}
$tabResult1 = $db->pquery('SELECT tabid, name, parent FROM vtiger_tab WHERE presence IN (?, ?) AND source=?', array(0, 2, 'custom'));
while ($row = $db->fetch_row($tabResult1)) {
$parentFromDb = $row['parent'];
if ($parentFromDb) {
$moduleName = $row['name'];
$parentTabs = explode(',', $parentFromDb);
foreach ($parentTabs as $parentTab) {
Settings_MenuEditor_Module_Model::addModuleToApp($moduleName, $parentTab);
}
$menuTab = $parentTabs[0];
$menuInstance = Vtiger_Menu::getInstance($menuTab);
if ($menuInstance) {
$moduleModel = Vtiger_Module_Model::getInstance($moduleName);
$menuInstance->addModule($moduleModel);
}
}
}
$tabResult2 = $db->pquery('SELECT tabid, name FROM vtiger_tab', array());
$moduleTabIds = array();
while ($row = $db->fetch_array($tabResult2)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment