[Vtigercrm-commits] [vtiger-commits] r9217 - /vtigercrm/trunk/modules/Calendar/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Aug 31 06:24:52 EDT 2006
Author: saraj
Date: Thu Aug 31 04:24:49 2006
New Revision: 9217
Log:
changes made to fix the calendar related issue --Minnie
Modified:
vtigercrm/trunk/modules/Calendar/Save.php
Modified: vtigercrm/trunk/modules/Calendar/Save.php
==============================================================================
--- vtigercrm/trunk/modules/Calendar/Save.php (original)
+++ vtigercrm/trunk/modules/Calendar/Save.php Thu Aug 31 04:24:49 2006
@@ -112,14 +112,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);
- }
-}
+if(isset($_REQUEST['return_module']) && $_REQUEST['return_module'] == "Contacts" && $_REQUEST['activity_mode'] == 'Events')
+{
+ 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