<!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=&action=updateRelations&destination_module=Vendors&entityid=51&parentid=139&return_module=&return_action=&parenttab=Support">http://192.168.2.99/vtigercrm2/index.php?module=&action=updateRelations&destination_module=Vendors&entityid=51&parentid=139&return_module=&return_action=&parenttab=Support</A><BR>
<BR>
When it should be:<BR>
<A HREF="http://192.168.2.99/vtigercrm2/index.php?module=Siniestros&action=updateRelations&destination_module=Vendors&entityid=51&parentid=139&return_module=&return_action=&parenttab=Support">http://192.168.2.99/vtigercrm2/index.php?module=<B>Siniestros&acti</B>on=updateRelations&destination_module=Vendors&entityid=51&parentid=139&return_module=&return_action=&parenttab=Support</A><BR>
<BR>
I'm not a coder but I add a few lines in popup.php<BR>
<BR>
case 'Vendors':<BR>
                require_once("modules/$currentModule/Vendors.php");<BR>
                $focus = new Vendors();<BR>
                $smarty->assign("SINGLE_MOD",'Vendor');<BR>
                <B>if(isset($_REQUEST['return_module']) && $_REQUEST['return_module'] !='')</B><BR>
<B>                        $smarty->assign("RETURN_MODULE",vtlib_purify($_REQUEST['return_module']));</B><BR>
<B>                if (isset($_REQUEST['select'])) $smarty->assign("SELECT",'enable');</B><BR>
                $alphabetical = AlphabeticalSearch($currentModule,'Popup','vendorname','true','basic',$popuptype,"","",$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>