<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
Hi,<BR>
<BR>
I was working to related Vendors to others module. I create the Related List using vtlib the ADD button works great, but there was a problem in the popup of the SELECT button. Basically the url return by the popup was:<BR>
<BR>
<A HREF="http://192.168.2.99/vtigercrm2/index.php?module=&amp;action=updateRelations&amp;destination_module=Vendors&amp;entityid=51&amp;parentid=139&amp;return_module=&amp;return_action=&amp;parenttab=Support">http://192.168.2.99/vtigercrm2/index.php?module=&amp;action=updateRelations&amp;destination_module=Vendors&amp;entityid=51&amp;parentid=139&amp;return_module=&amp;return_action=&amp;parenttab=Support</A><BR>
<BR>
When it should be:<BR>
<A HREF="http://192.168.2.99/vtigercrm2/index.php?module=Siniestros&amp;action=updateRelations&amp;destination_module=Vendors&amp;entityid=51&amp;parentid=139&amp;return_module=&amp;return_action=&amp;parenttab=Support">http://192.168.2.99/vtigercrm2/index.php?module=<B>Siniestros&amp;acti</B>on=updateRelations&amp;destination_module=Vendors&amp;entityid=51&amp;parentid=139&amp;return_module=&amp;return_action=&amp;parenttab=Support</A><BR>
<BR>
I'm not a coder but I add a few lines in popup.php<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 'Vendors':<BR>
                require_once(&quot;modules/$currentModule/Vendors.php&quot;);<BR>
                $focus = new Vendors();<BR>
                $smarty-&gt;assign(&quot;SINGLE_MOD&quot;,'Vendor');<BR>
                <B>if(isset($_REQUEST['return_module']) &amp;&amp; $_REQUEST['return_module'] !='')</B><BR>
<B>                        $smarty-&gt;assign(&quot;RETURN_MODULE&quot;,vtlib_purify($_REQUEST['return_module']));</B><BR>
<B>                if (isset($_REQUEST['select'])) $smarty-&gt;assign(&quot;SELECT&quot;,'enable');</B><BR>
                $alphabetical = AlphabeticalSearch($currentModule,'Popup','vendorname','true','basic',$popuptype,&quot;&quot;,&quot;&quot;,$url);<BR>
                break;<BR>
<BR>
Know everything works OK. I do not know if this was a bug or it was suppose to the way it was<BR>
<BR>
Hope this help<BR>
<BR>
Regards,<BR>
Conrado
</BODY>
</HTML>