[Vtigercrm-commits] [vtiger-commits] r6075 - /vtigercrm/trunk/data/CRMEntity.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue May 16 11:43:51 EDT 2006


Author: saraj
Date: Tue May 16 09:43:47 2006
New Revision: 6075

Log:
code added to send mail to put entry in invitees table

Modified:
    vtigercrm/trunk/data/CRMEntity.php

Modified: vtigercrm/trunk/data/CRMEntity.php
==============================================================================
--- vtigercrm/trunk/data/CRMEntity.php (original)
+++ vtigercrm/trunk/data/CRMEntity.php Tue May 16 09:43:47 2006
@@ -59,6 +59,17 @@
 	else
     		$recur_type='';	
 	// Code included by Jaguar - Ends
+
+	//Code included by Minnie - Starts
+	if(isset($_REQUEST['inviteesid']) && $_REQUEST['inviteesid']!='')
+	{
+		$selected_users_string =  $_REQUEST['inviteesid'];
+		$invitees_array = explode(';',$selected_users_string);
+
+	}
+	else
+		$invitees_array='';
+	//Code included by Minnie - Ends	
 
 	foreach($this->tab_name as $table_name)
 	{
@@ -165,6 +176,15 @@
 	      			$this->insertIntoRecurringTable($table_name,$module);
 			}		
 		}// Code included by Jaguar - Ends
+		// Code included by Minnie  -  starts	
+		elseif($table_name == "invitees") 
+		{
+			if($invitees_array != '')
+			{
+				$this->insertIntoInviteeTable($table_name,$module,$invitees_array);
+			}
+		}
+		// Code included by Minnie  -  Ends
 		else
 		{
 			$this->insertIntoEntityTable($table_name, $module);			
@@ -954,6 +974,24 @@
 	}
 }
 
+// Code included by Minnie - starts
+function insertIntoInviteeTable($table_name,$module,$invitees_array)
+{
+	global $log,$adb;
+	$log->debug("Entering insertIntoInviteeTable(".$table_name.",".$module.",".$invitees_array.") method ...");
+	foreach($invitees_array as $inviteeid)
+	{
+		if($inviteeid != '')
+		{
+			$query="insert into invitees values(".$this->id.",".$inviteeid.")";
+			$adb->query($query);
+		}
+	}
+	$log->debug("Exiting insertIntoInviteeTable method ...");
+
+}
+// Code included by Minnie - Ends
+
 // Code included by Jaguar - starts 
 function insertIntoRecurringTable($table_name,$module)
 {





More information about the vtigercrm-commits mailing list