[Vtigercrm-commits] [vtiger-commits] r11075 - in /vtigercrm/branches/5.0.3: modules/Emails/Save.php modules/Webmails/Save.php soap/thunderbirdplugin.php soap/vtigerolservice.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 28 00:26:03 EDT 2007
Author: jerrydgeorge
Date: Sun May 27 22:25:49 2007
New Revision: 11075
Log:
Issue not showing the email ID in Email DetailView has been fixed
Modified:
vtigercrm/branches/5.0.3/modules/Emails/Save.php
vtigercrm/branches/5.0.3/modules/Webmails/Save.php
vtigercrm/branches/5.0.3/soap/thunderbirdplugin.php
vtigercrm/branches/5.0.3/soap/vtigerolservice.php
Modified: vtigercrm/branches/5.0.3/modules/Emails/Save.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Emails/Save.php (original)
+++ vtigercrm/branches/5.0.3/modules/Emails/Save.php Sun May 27 22:25:49 2007
@@ -236,6 +236,11 @@
$all_to_ids = ereg_replace(",","###",$_REQUEST["hidden_toid"]);
if(isset($_REQUEST["saved_toid"]) && $_REQUEST["saved_toid"]!='')
$all_to_ids .= ereg_replace(",","###",$_REQUEST["saved_toid"]);
+
+
+//added to save < as $lt; and > as > in the database so as to retrive the emailID
+$all_to_ids = str_replace('<','<',$all_to_ids);
+$all_to_ids = str_replace('>','>',$all_to_ids);
$all_cc_ids = ereg_replace(",","###",$_REQUEST["ccmail"]);
$all_bcc_ids = ereg_replace(",","###",$_REQUEST["bccmail"]);
Modified: vtigercrm/branches/5.0.3/modules/Webmails/Save.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/Save.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/Save.php Sun May 27 22:25:49 2007
@@ -131,6 +131,9 @@
//saving in vtiger_emaildetails vtiger_table
$id_lists = $focus->column_fields['parent_id'].'@'.$fieldid;
$all_to_ids = $email->from;
+//added to save < as $lt; and > as > in the database so as to retrive the emailID
+$all_to_ids = str_replace('<','<',$all_to_ids);
+$all_to_ids = str_replace('>','>',$all_to_ids);
$query = 'insert into vtiger_emaildetails values ('.$focus->id.',"","'.$all_to_ids.'","","","","'.$id_lists.'","WEBMAIL")';
$adb->query($query);
Modified: vtigercrm/branches/5.0.3/soap/thunderbirdplugin.php
==============================================================================
--- vtigercrm/branches/5.0.3/soap/thunderbirdplugin.php (original)
+++ vtigercrm/branches/5.0.3/soap/thunderbirdplugin.php Sun May 27 22:25:49 2007
@@ -240,6 +240,10 @@
if(isset($camodulerow))
{
$emailid = $camodulerow["email"];
+
+ //added to save < as $lt; and > as > in the database so as to retrive the emailID
+ $user_emailid = str_replace('<','<',$user_emailid);
+ $user_emailid = str_replace('>','>',$user_emailid);
$query = 'insert into vtiger_emaildetails values ('.$email->id.',"'.$emailid.'","'.$user_emailid.'","","","","'.$user_id.'@-1|'.$contact_ids.'@'.$field_id.'|","THUNDERBIRD")';
$adb->query($query);
}
Modified: vtigercrm/branches/5.0.3/soap/vtigerolservice.php
==============================================================================
--- vtigercrm/branches/5.0.3/soap/vtigerolservice.php (original)
+++ vtigercrm/branches/5.0.3/soap/vtigerolservice.php Sun May 27 22:25:49 2007
@@ -348,6 +348,10 @@
if(isset($camodulerow))
{
$emailid = $camodulerow["email"];
+
+ //added to save < as $lt; and > as > in the database so as to retrive the emailID
+ $user_emailid = str_replace('<','<',$user_emailid);
+ $user_emailid = str_replace('>','>',$user_emailid);
$query = 'insert into vtiger_emaildetails values ('.$email->id.',"'.$emailid.'","'.$user_emailid.'","","","","'.$user_id.'@-1|'.$contactid.'@'.$field_id.'|","OUTLOOK")';
$adb->query($query);
}
More information about the vtigercrm-commits
mailing list