<div dir="ltr">Douglas,<div><br></div><div>To generalyze this fix, you can merge this script with data/CRMEntity.php content. (See attached file).</div><div>If you want to override vtlib_handler() function in your module class, don't forget to call :</div>
<div><br></div><div>parrent::vtlib_handler($moduleName, $eventType);</div>
<div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.727272033691406px;background-color:rgb(255,255,255)"><div><br></div><div>Regards,</div>
<div><br></div><div><div><font color="#666666">Jonathan SARDO</font></div><div></div><div style="color:rgb(136,136,136)"><img src="cid:ii_13df029e6cb01b67" alt="Images intégrées 5"><br></div><div style="color:rgb(136,136,136)">
<span style="color:rgb(0,0,0);font-family:arial;font-size:small">Tél. <a value="+33699455047" style="color:rgb(17,85,204)">06 99 45 50 47</a></span></div></div></div></div></div>
<br><br><div class="gmail_quote">2014-02-17 13:25 GMT+01:00 Douglas Gigante <span dir="ltr"><<a href="mailto:douglas.gigante@tecnocomp.com.br" target="_blank">douglas.gigante@tecnocomp.com.br</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="PT-BR" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Jonathan,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Can you please be more specific regarding this fix?! Do I have to add that “modulename.php instruction inside the other PHP file?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Kind regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(0,112,192)">| Douglas R Gigante |</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
</span><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(127,127,127)">Gerente de Desenvolvimento de Negócios</span></b><b><span style="font-size:9pt;font-family:Calibri,sans-serif;color:rgb(127,127,127)"> - TI
</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(0,112,192)">|</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:gray"> SP </span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(0,112,192)">|
</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:gray">11 2199-5800 R. 5864
</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(0,112,192)">|</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:gray"> 11
</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(127,127,127)">99135-9964</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,112,192)"><a href="http://www.tecnocomp.com.br/" target="_blank"><b><span style="font-size:10pt;color:rgb(0,112,192)">|</span></b></a></span><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(0,112,192)">
</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,112,192)"><a href="http://www.tecnocomp.com.br/" target="_blank"><b><span style="font-size:10pt;color:rgb(0,112,192)">TecnoComp Tecnologia e Serviços</span></b></a></span><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(0,112,192)">
| <u></u><u></u></span></b></p>
<div>
<div>
<div>
<div class="MsoNormal"><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(0,112,192)">
<hr size="1" width="616" style="width:462pt" noshade align="left">
</span></b></div>
</div>
</div>
</div>
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(127,127,127)">| Serviços e Produtos
</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(0,176,80)">•
</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(127,127,127)">CSC – Service Desk
</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(255,192,0)">•
</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(127,127,127)">Suporte e Gestão de Ativos
</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(192,0,0)">•</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(127,127,127)"> Data Center Services
</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(13,56,179)">•</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(127,127,127)"> Infraestrutura |</span></b><b><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(0,112,192)"><u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">De:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"> <a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com" target="_blank">vtigercrm-developers-bounces@lists.vtigercrm.com</a> [mailto:<a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com" target="_blank">vtigercrm-developers-bounces@lists.vtigercrm.com</a>]
<b>Em nome de </b>Jonathan Sardo<br>
<b>Enviada em:</b> sábado, 15 de fevereiro de 2014 13:42<br>
<b>Para:</b> <a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a><br>
<b>Assunto:</b> Re: [Vtigercrm-developers] Pick lists values<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Andrew,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Yes, Vtiger does not replace data. It always adds again.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Have a look at the attached script. You can add this in you module's class or in the CRMEntity class (/data/CRMentity.php) to generalize the behavior.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:rgb(34,34,34)">Regards,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:rgb(34,34,34)"><u></u> <u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:rgb(102,102,102)">Jonathan SARDO</span><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:rgb(34,34,34)"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:rgb(136,136,136)"><img border="0" width="188" height="30" src="cid:image001.png@01CF2BC2.83686360" alt="Images intégrées 5"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif">Tél. <a href="tel:06%2099%2045%2050%2047" value="+33699455047" target="_blank">06 99 45 50 47</a></span><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:rgb(136,136,136)"><u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2014-02-15 6:14 GMT+01:00 Siam Translations LLP <<a href="mailto:info@siam-translations.com" target="_blank">info@siam-translations.com</a>>:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">While importing records picklist values are not replaced with same one but added to database. Geting messy. Anybody noticed it?<u></u><u></u></p>
</div>
<p class="MsoNormal">Andrew Smith<u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div></div></div>
</div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div></div></div>