[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=&amp;action=updateRelations&a \
mp;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=updateR \
elations&amp;destination_module=Vendors&amp;entityid=51&amp;parentid=139&amp;return_mo \
dule=&amp;return_action=&amp;parenttab=Support">http://192.168.2.99/vtigercrm2/index.p \
hp?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>



_______________________________________________
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