[Vtigercrm-commits] [vtiger-commits] r7690 - /vtigercrm/trunk/modules/Activities/Save.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri Jun 30 03:08:59 EDT 2006


Author: saraj
Date: Fri Jun 30 01:08:56 2006
New Revision: 7690

Log:
changes made to save the relation between activity and contact

Modified:
    vtigercrm/trunk/modules/Activities/Save.php

Modified: vtigercrm/trunk/modules/Activities/Save.php
==============================================================================
--- vtigercrm/trunk/modules/Activities/Save.php (original)
+++ vtigercrm/trunk/modules/Activities/Save.php Fri Jun 30 01:08:56 2006
@@ -26,7 +26,7 @@
 //require("modules/Emails/class.phpmailer.php");
 require_once("config.php");
 require_once('include/database/PearDatabase.php');
-
+global $adb;
 $local_log =& LoggerManager::getLogger('index');
 
 $focus = new Activity();
@@ -110,7 +110,15 @@
 		$adb->query($sql);
 	}
 }
-
+if(isset($_REQUEST['return_module']) && $_REQUEST['return_module'] == "Contacts")
+{
+	if(isset($_REQUEST['return_id']) && $_REQUEST['return_id'] != "")
+	{
+		$sql = "insert into vtiger_cntactivityrel values (".$_REQUEST['return_id'].",".$focus->id.")";
+		$adb->query($sql);
+	}
+}
+									
 $activemode = "";
 if($activity_mode != '') $activemode = "&activity_mode=".$activity_mode;
 





More information about the vtigercrm-commits mailing list