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

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


Just for completeness I have also tried regenerating the tabdata & 
parent_tabdata.php files by calling the 
perform_post_migration_activities(); function in CommonUtils.php but new 
menu items are still not being "attached" to the title.

On 24/04/12 14:15, Alan Lord (News) wrote:
> 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