[Vtigercrm-commits] [vtiger-commits] r7780 - /vtigercrm/trunk/modules/Activities/updateRelations.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Jul 4 08:55:12 EDT 2006
Author: saraj
Date: Tue Jul 4 06:55:08 2006
New Revision: 7780
Log:
changes made to fix the activities relatedlist issue
Modified:
vtigercrm/trunk/modules/Activities/updateRelations.php
Modified: vtigercrm/trunk/modules/Activities/updateRelations.php
==============================================================================
--- vtigercrm/trunk/modules/Activities/updateRelations.php (original)
+++ vtigercrm/trunk/modules/Activities/updateRelations.php Tue Jul 4 06:55:08 2006
@@ -29,7 +29,7 @@
header("Location: index.php?action=CallRelatedList&module=Activities&activity_mode=Events&record=".$record);
}
-elseif(isset($_REQUEST['entityid']) && $_REQUEST['entityid'] != '')
+elseif(isset($_REQUEST['entityid']) && $_REQUEST['entityid'] != '' && $_REQUEST['destination_module'] == 'Contacts')
{
$record = $_REQUEST["parid"];
$sql = "insert into vtiger_cntactivityrel values (". $_REQUEST["entityid"] .",".$_REQUEST["parid"] .")";
@@ -56,10 +56,10 @@
}
header("Location: index.php?action=CallRelatedList&module=Activities&activity_mode=Events&record=".$record);
}
-elseif(isset($_REQUEST['user_id']) && $_REQUEST['user_id'] != '')
+elseif(isset($_REQUEST['entityid']) && $_REQUEST['entityid'] != '' && $_REQUEST['destination_module'] == 'Users')
{
- $record = $_REQUEST['record'];
- $sql = "insert into vtiger_salesmanactivityrel values (". $_REQUEST["user_id"] .",".$_REQUEST["record"] .")";
+ $record = $_REQUEST['parid'];
+ $sql = "insert into vtiger_salesmanactivityrel values (". $_REQUEST["entityid"] .",".$_REQUEST["parid"] .")";
$adb->query($sql);
header("Location: index.php?action=CallRelatedList&module=Activities&activity_mode=Events&record=".$record);
More information about the vtigercrm-commits
mailing list