[Vtigercrm-commits] [vtiger-commits] r9543 - /vtigercrm/branches/5.0.1/include/utils/CommonUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Sep 29 02:35:45 EDT 2006
Author: richie
Date: Fri Sep 29 00:35:30 2006
New Revision: 9543
Log:
Fixed the send enail not working when the salutationtype field is added in contacts
Modified:
vtigercrm/branches/5.0.1/include/utils/CommonUtils.php
Modified: vtigercrm/branches/5.0.1/include/utils/CommonUtils.php
==============================================================================
--- vtigercrm/branches/5.0.1/include/utils/CommonUtils.php (original)
+++ vtigercrm/branches/5.0.1/include/utils/CommonUtils.php Fri Sep 29 00:35:30 2006
@@ -2430,6 +2430,13 @@
case 'Contacts':
if(is_array($fields["contacts"]))
{
+ //Checking for salutation type and checking the table column to be queried
+ $key = array_search('salutationtype',$fields["contacts"]);
+ if(isset($key) && $key !='')
+ {
+ $fields["contacts"][$key]='salutation';
+ }
+
$columnfields = implode(',',$fields["contacts"]);
$query = 'select '.$columnfields.' from vtiger_contactdetails where contactid='.$id;
$result = $adb->query($query);
@@ -2443,6 +2450,12 @@
case 'Leads':
if(is_array($fields["leads"]))
{
+ //Checking for salutation type and checking the table column to be queried
+ $key = array_search('salutationtype',$fields["contacts"]);
+ if(isset($key) && $key !='')
+ {
+ $fields["contacts"][$key]='salutation';
+ }
$columnfields = implode(',',$fields["leads"]);
$query = 'select '.$columnfields.' from vtiger_leaddetails where leadid='.$id;
$result = $adb->query($query);
More information about the vtigercrm-commits
mailing list