[Vtigercrm-developers] Relate Vendors to other module [Not working popup]

Conrado Maggi comaggi at gmail.com
Sat Sep 24 09:32:39 PDT 2011


Hi,

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:

http://192.168.2.99/vtigercrm2/index.php?module=&action=updateRelations&destination_module=Vendors&entityid=51&parentid=139&return_module=&return_action=&parenttab=Support

When it should be:
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

I'm not a coder but I add a few lines in popup.php

       case 'Vendors':
		require_once("modules/$currentModule/Vendors.php");
		$focus = new Vendors();
		$smarty->assign("SINGLE_MOD",'Vendor');
		if(isset($_REQUEST['return_module']) && $_REQUEST['return_module'] !
='')

$smarty->assign("RETURN_MODULE",vtlib_purify($_REQUEST['return_module']));
		if (isset($_REQUEST['select'])) $smarty->assign("SELECT",'enable');
		$alphabetical =
AlphabeticalSearch($currentModule,'Popup','vendorname','true','basic',
$popuptype,"","",$url);
		break;

Know everything works OK. I do not know if this was a bug or it was
suppose to the way it was

Hope this help

Regards,
Conrado
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20110924/78d8c61c/attachment-0002.html 


More information about the vtigercrm-developers mailing list