[Vtigercrm-developers] vtlib HEADERSCRIPT fail

Tim Mohrbach preexo at googlemail.com
Tue Dec 29 08:28:40 GMT 2015


I had trouble with this too and fixed it with saving my vtiger user again. I changed the admin flag for example with another admin and saved the user, then changed it back and saved it. Afterwards the css or js file got included. I had to repeat this step for all other users. 
Not sure if you have the same problem though. 
Best regards 

On December 28, 2015 4:17:36 PM GMT+01:00, Estefan Civera <estefan.civera at gmail.com> wrote:
>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.
>_______________________________________________
>http://www.vtiger.com/

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20151229/86e04968/attachment.html>


More information about the vtigercrm-developers mailing list