[Vtigercrm-developers] vtlib HEADERSCRIPT fail

Estefan Civera estefan.civera at gmail.com
Mon Dec 28 15:17:36 GMT 2015


Hi I'm trying to add a new custom function as external javascritp file in
Invoice module.

I've added this with this code

$moduleInstance = Vtiger_Module::getInstance('Invoice');
$moduleInstance->addLink(
'HEADERSCRIPT',
'vtInvoiceHelper',
'modules/Invoice/InvoiceHelper.js'
);

$adb->pquery('UPDATE vtiger_tab SET customized=1 WHERE name=?',
array($moduleName));

Vtlib has inserted correctly the file into the vtiger_link table, but when I
go in module Invoice I dont see this file included and I cant't call my
custom function




-----
Ing. Estefan Civera
Vtiger developer and consultant
http://www.estefancivera.net
Italy
--
View this message in context: http://vtiger-crm.2324883.n4.nabble.com/vtlib-HEADERSCRIPT-fail-tp18040.html
Sent from the vtigercrm-developers mailing list archive at Nabble.com.


More information about the vtigercrm-developers mailing list