[Vtigercrm-developers] vtlib Vtiger_Menu::getInstance not working in 5.4.0

Alan Lord (News) alanslists at gmail.com
Tue Apr 24 06:15:11 PDT 2012


Has the change to the menu layout in 5.4.0 caused the vtlib functions 
for menu assignment to change at all?

I am calling

$menuInstance = Vtiger_Menu::getInstance('Tools');
$menuInstance->addModule($module);

from my module creation code but my menu items are appearing in their 
own column on the left of the "More" dropdown without a Title.

Looking the vtiger_parenttabrel table though, when I create a new module 
and execute the above code, the correct parenttabid, tabid & sequence 
fields are filled in. SP perhaps this is a problem with the new menu 
display code rather than vtlib?

Ideally I'd like to create a new Menu group to hold my custom modules 
but I can't see a feature in the vtlib Menu.php code to create a new parent.

Thanks

Al

-- 
Libertus Solutions
http://www.libertus.co.uk



More information about the vtigercrm-developers mailing list