[Vtigercrm-commits] [vtiger-commits] r7688 - /vtigercrm/trunk/modules/Contacts/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Jun 30 03:02:26 EDT 2006
Author: saraj
Date: Fri Jun 30 01:02:21 2006
New Revision: 7688
Log:
changes made to save the reltion between campaign and contact
Modified:
vtigercrm/trunk/modules/Contacts/Save.php
Modified: vtigercrm/trunk/modules/Contacts/Save.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/Save.php (original)
+++ vtigercrm/trunk/modules/Contacts/Save.php Fri Jun 30 01:02:21 2006
@@ -131,6 +131,15 @@
$local_log->debug("Saved record with id of ".$return_id);
+ if(isset($_REQUEST['return_module']) && $_REQUEST['return_module'] == "Campaigns")
+ {
+ if(isset($_REQUEST['return_id']) && $_REQUEST['return_id'] != "")
+ {
+ $sql = "insert into vtiger_campaigncontrel values (".$_REQUEST['return_id'].",".$focus->id.")";
+ $adb->query($sql);
+ }
+ }
+
//BEGIN -- Code for Create Customer Portal Users password and Send Mail
if($_REQUEST['portal'] == '' && $_REQUEST['mode'] == 'edit')
{
More information about the vtigercrm-commits
mailing list