IncomingCallPoll.php

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- IncomingCallPoll.php.backup 2015-06-08 14:54:50.977926893 +0500
+++ IncomingCallPoll.php 2015-06-08 15:32:52.993386609 +0500
@@ -113,8 +113,12 @@
public function createRecord(Vtiger_Request $request){^M
$user = Users_Record_Model::getCurrentUserModel();^M
$moduleName = $request->get('modulename');^M
- $name = explode("@",$request->get('email'));^M
- $element['lastname'] = $name[0];^M
+ //$name = explode("@",$request->get('email'));^M
+ //$element['lastname'] = $name[0];^M
+ $element['firstname'] = $request->get('firstname');
+ $element['lastname'] = $request->get('lastname');
+ $element['description'] = $request->get('description');
+
$element['email'] = $request->get('email');^M
$element['phone'] = $request->get('number');^M
$element['assigned_user_id'] = vtws_getWebserviceEntityId('Users', $user->id);^M
@@ -187,4 +191,4 @@
^M
}^M
^M
-?>
\ No newline at end of file
+?>