[Vtigercrm-commits] [vtiger-commits] r10287 - in /vtigercrm/branches/5.0.3/modules: Contacts/DetailView.php Potentials/DetailView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 1 08:41:37 EST 2007


Author: saraj
Date: Thu Mar  1 06:41:31 2007
New Revision: 10287

Log:
fix for issue in creating Potential from Contact RelatedList  Fixes #3149 --Minnie

Modified:
    vtigercrm/branches/5.0.3/modules/Contacts/DetailView.php
    vtigercrm/branches/5.0.3/modules/Potentials/DetailView.php

Modified: vtigercrm/branches/5.0.3/modules/Contacts/DetailView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Contacts/DetailView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Contacts/DetailView.php Thu Mar  1 06:41:31 2007
@@ -128,6 +128,10 @@
 
 if($singlepane_view == 'true')
 {
+	$sql = $adb->query('select accountid from vtiger_contactdetails where contactid='.$focus->id);
+	$accountid = $adb->query_result($sql,0,'accountid');
+	if($accountid == 0) $accountid='';
+	$smarty->assign("accountid",$accountid);
 	$related_array = getRelatedLists($currentModule,$focus);
 	$smarty->assign("RELATEDLISTS", $related_array);
 }

Modified: vtigercrm/branches/5.0.3/modules/Potentials/DetailView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Potentials/DetailView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Potentials/DetailView.php Thu Mar  1 06:41:31 2007
@@ -98,6 +98,7 @@
 {
 	$related_array = getRelatedLists($currentModule,$focus);
 	$smarty->assign("RELATEDLISTS", $related_array);
+	$smarty->assign("BASE_ACCOUNT",getAccountName($focus->column_fields[account_id]));	
 }
 
 $smarty->assign("IS_REL_LIST",isPresentRelatedLists($currentModule));





More information about the vtigercrm-commits mailing list