[Vtigercrm-commits] [vtiger-commits] r9197 - /vtigercrm/trunk/soap/vtigerolservice.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Aug 30 02:41:34 EDT 2006


Author: richie
Date: Wed Aug 30 00:41:23 2006
New Revision: 9197

Log:
Issue in Outlook Plugin has been fixed --Jeri

Modified:
    vtigercrm/trunk/soap/vtigerolservice.php

Modified: vtigercrm/trunk/soap/vtigerolservice.php
==============================================================================
--- vtigercrm/trunk/soap/vtigerolservice.php (original)
+++ vtigercrm/trunk/soap/vtigerolservice.php Wed Aug 30 00:41:23 2006
@@ -503,6 +503,7 @@
 		}
 
 		$namelist = explode(" ", $contact["lastname"]);
+		$middlename = "";
 		if(isset($namelist))
 		{
 			if(count($namelist) >= 2) 
@@ -510,7 +511,8 @@
 				$contact["lastname"] = $namelist[count($namelist)-1];       	
 				for($i=0; $i<count($namelist)-2; $i++)
 				{
-					$middlename[] = $namelist[$i];
+				  if($namelist[$i] != '')
+					 $middlename[] = $namelist[$i];
 				}
 				if(isset($middlename))
 				{
@@ -925,7 +927,7 @@
 			$task->column_fields[description]= in_array('description',$permitted_lists) ? $taskrow["description"] : "";
 			$task->column_fields[activitytype]="Task";
 			//$task->column_fields[contact_id]= retrievereportsto($contact_name,$user_id,null); 
-			$task->column_fields[assigned_user_id]=in_array('assigned_user_id',$permitted_lists) ? $user_id : "";
+			$task->column_fields[assigned_user_id]= in_array('assigned_user_id',$permitted_lists) ? $user_id : "";
 			$task->save("Calendar");
 		  }
 	}
@@ -1006,7 +1008,7 @@
 			$task->column_fields[description] = in_array('description',$permitted_lists) ? $taskrow["description"] : "";
 			$task->column_fields[activitytype] = "Task";
 			//$task->column_fields[contact_id]= retrievereportsto($contact_name,$user_id,null); 
-			$task->column_fields[assigned_user_id] = $user_id;
+			$task->column_fields[assigned_user_id] = in_array('assigned_user_id',$permitted_lists) ? $user_id : "";
 
 			$task->id = $taskrow["id"];
 			$task->mode="edit";





More information about the vtigercrm-commits mailing list