[Vtigercrm-commits] [vtiger-commits] r10379 - in /vtigercrm/branches/5.0.3: include/utils/ListViewUtils.php modules/Contacts/Contacts.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Mar 7 05:23:27 EST 2007
Author: saraj
Date: Wed Mar 7 03:23:16 2007
New Revision: 10379
Log:
fix for Showing account name in contact popup. Fixes #3179 --Minnie
Modified:
vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
vtigercrm/branches/5.0.3/modules/Contacts/Contacts.php
Modified: vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php Wed Mar 7 03:23:16 2007
@@ -945,6 +945,12 @@
$quote_id = $adb->query_result($list_result,$i-1,"quoteid");
$quotename = getQuoteName($quote_id);
$value = $quotename;
+ }
+ elseif($name == 'Account Name' && $module=='Contacts' )
+ {
+ $account_id = $adb->query_result($list_result,$i-1,"accountid");
+ $account_name = getAccountName($account_id);
+ $value = $account_name;
}
else
{
Modified: vtigercrm/branches/5.0.3/modules/Contacts/Contacts.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Contacts/Contacts.php (original)
+++ vtigercrm/branches/5.0.3/modules/Contacts/Contacts.php Wed Mar 7 03:23:16 2007
@@ -107,12 +107,14 @@
var $search_fields = Array(
'Name' => Array('contactdetails'=>'lastname'),
- 'Title' => Array('contactdetails'=>'title')
+ 'Title' => Array('contactdetails'=>'title'),
+ 'Account Name'=>Array('contactdetails'=>'account_id'),
);
var $search_fields_name = Array(
'Name' => 'lastname',
- 'Title' => 'title'
+ 'Title' => 'title',
+ 'Account Name'=>'account_id',
);
// This is the list of vtiger_fields that are required
More information about the vtigercrm-commits
mailing list