[Vtigercrm-commits] [Vtiger development] #8535: Vtiger_Menu | - addModule not working
Vtiger development
vtiger-tickets at trac.vtiger.com
Mon Apr 20 10:20:24 GMT 2015
#8535: Vtiger_Menu | - addModule not working
------------------------+------------------------
Reporter: kjaja70 | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: Unassigned
Component: vtigercrm | Version: 6.2.0
Severity: Medium | Keywords:
------------------------+------------------------
Hi,
in this code,
{{{#!php
include_once('vtlib/Vtiger/Module.php');
$moduleInstance = new Vtiger_Module();
$moduleInstance->name = 'Payslip';
$moduleInstance->save();
$moduleInstance->initTables();
$menuInstance = Vtiger_Menu::getInstance('Tools');
$menuInstance->addModule($moduleInstance);
}}}
The module not added to the menu.
but in this code:
{{{#!php
include_once('vtlib/Vtiger/Module.php');
$moduleInstance = new Vtiger_Module();
$moduleInstance->name = 'Payslip';
$moduleInstance->parent = 'Tools';
$moduleInstance->save();
$moduleInstance->initTables();
}}}
Yes!!
also, the abilitiy to chage menu parent is not working.
{{{#!php
include_once('vtlib/Vtiger/Module.php');
$moduleInstance = Vtiger_Module::getInstance('Payslip');
$moduleInstance->parent = 'Marketing';
$moduleInstance->save();
}}}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8535>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM
More information about the vtigercrm-commits
mailing list