[Vtigercrm-commits] [vtiger-commits] r10103 - /vtigercrm/branches/5.0.3/soap/firefoxtoolbar.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Jan 24 04:34:30 EST 2007


Author: richie
Date: Wed Jan 24 02:34:26 2007
New Revision: 10103

Log:
First name field added for firefox plugin

Modified:
    vtigercrm/branches/5.0.3/soap/firefoxtoolbar.php

Modified: vtigercrm/branches/5.0.3/soap/firefoxtoolbar.php
==============================================================================
--- vtigercrm/branches/5.0.3/soap/firefoxtoolbar.php (original)
+++ vtigercrm/branches/5.0.3/soap/firefoxtoolbar.php Wed Jan 24 02:34:26 2007
@@ -31,6 +31,7 @@
 	'create_lead_from_webform',
 	array('username'=>'xsd:string', 
 		'lastname'=>'xsd:string',
+		'firstname'=>'xsd:string',
 		'email'=>'xsd:string', 
 		'phone'=>'xsd:string', 
 		'company'=>'xsd:string', 
@@ -65,7 +66,7 @@
 	
 $server->register(
    'create_contacts',
-    array('user_name'=>'xsd:string','lastname'=>'xsd:string','phone'=>'xsd:string','mobile'=>'xsd:string','email'=>'xsd:string','street'=>'xsd:string','city'=>'xsd:string','state'=>'xsd:string','country'=>'xsd:string','zipcode'=>'xsd:string'),
+    array('user_name'=>'xsd:string','firstname'=>'xsd:string','lastname'=>'xsd:string','phone'=>'xsd:string','mobile'=>'xsd:string','email'=>'xsd:string','street'=>'xsd:string','city'=>'xsd:string','state'=>'xsd:string','country'=>'xsd:string','zipcode'=>'xsd:string'),
     array('return'=>'xsd:string'),
     $NAMESPACE);
 
@@ -636,7 +637,7 @@
 
 
 
-function create_lead_from_webform($username,$lastname,$email,$phone,$company,$country,$description)
+function create_lead_from_webform($username,$lastname,$email,$phone,$company,$country,$description,$firstname)
 {
 
 	global $log;
@@ -654,6 +655,7 @@
 	if(isPermitted("Leads","EditView") == "yes")
 	{
 		$focus->column_fields['lastname'] = $lastname;
+		$focus->column_fields['firstname'] = $firstname;
 		$focus->column_fields['email'] = $email;
 		$focus->column_fields['phone'] = $phone;
 		$focus->column_fields['company'] = $company;
@@ -675,13 +677,14 @@
 
 }
 
-function create_contacts($user_name,$lastname,$phone,$mobile,$email,$street,$city,$state,$country,$zipcode)
-{
-  global $log;
-  $log->debug($user_name);
-  $birthdate = "0000-00-00";
-	
-	return create_contact1($user_name, "", $lastname, $email,"", "","", $mobile, "",$street,$city,$state,$zipcode,$country,$city,$street,$state,$zipcode,$country,$phone,"","","","",$birthdate,"","");
+function create_contacts($user_name,$firstname,$lastname,$phone,$mobile,$email,$street,$city,$state,$country,$zipcode)
+{
+	global $log;
+	$log->DEBUG("Entering into create_contacts");
+	$log->DEBUG($firstname."Firstisname");
+	$birthdate = "0000-00-00";
+	
+	return create_contact1($user_name, $firstname, $lastname, $email,"", "","", $mobile, "",$street,$city,$state,$zipcode,$country,$city,$street,$state,$zipcode,$country,$phone,"","","","",$birthdate,"","");
 	
 }
 
@@ -696,6 +699,7 @@
 	$current_user->retrieve_entity_info($user_id,'Users');
 
 	require_once('modules/Contacts/Contacts.php');
+	$log->DEBUG($first_name."First & Name");
   if(isPermitted("Contacts","EditView") == "yes")
   {
    $contact = new Contacts();





More information about the vtigercrm-commits mailing list