[prev in list] [next in list] [prev in thread] [next in thread]
List: vtigercrm-developers
Subject: [Vtigercrm-developers] Relate Vendors to other module [Not working
From: Conrado Maggi <comaggi () gmail ! com>
Date: 2011-09-24 16:32:39
Message-ID: 1316881959.2126.11.camel () conrado-laptop
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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_mo \
dule=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&dest \
ination_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
[Attachment #5 (text/html)]
<!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&a \
mp;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=updateR \
elations&destination_module=Vendors&entityid=51&parentid=139&return_mo \
dule=&return_action=&parenttab=Support">http://192.168.2.99/vtigercrm2/index.p \
hp?module=<B>Siniestros&acti</B>on=updateRelations&destination_module=Vendors& \
amp;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>
_______________________________________________
http://www.vtiger.com/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic