[Vtigercrm-developers] contract service deadlock on creation with vtws_create
Estefan Civera
estefan.civera at gmail.com
Mon Dec 19 08:06:18 GMT 2016
Hi all,
I'm trying to create a contract service via vtlib (vtws_create fuction)
but creation go in deadlock
do you have any idea?
I have tested it in a new installation of vt 6.4 and vt 6.5
thanks
<?php
include_once 'vtlib/Vtiger/Module.php';
include_once 'includes/main/WebUI.php';
include_once 'include/Webservices/Create.php';
$current_user = CRMEntity::getInstance('Users');
$current_user->retrieveCurrentUserInfoFromFile(1);
error_reporting(E_ERROR | E_WARNING | E_PARSE);
ini_set("display_errors", 1);
try{
$contractService = array();
$contractService['subject'] = 'Service contract name';
$contractService['contract_status'] = 'In planning';
$contractService['contract_type'] = 'Support';
$contractService['start_date'] = '2016-11-12';
$contractService['end_date'] = '2017-12-12';
$contractService['due_date'] = '2017-12-13';
$contractService['total_units'] = '200';
$contractService['tracking_unit'] = 'Hours';
$contractService['sc_related_to'] = null;
$contractService['assigned_user_id'] = $current_user->id;
$contractService = vtws_create('ServiceContracts', $contractService,
$current_user);
} catch (WebServiceException $ex) {
echo $ex->getMessage();
}
-----
Ing. Estefan Civera
Vtiger developer and consultant
http://www.estefancivera.net
Italy
--
View this message in context: http://vtiger-crm.2324883.n4.nabble.com/contract-service-deadlock-on-creation-with-vtws-create-tp20307.html
Sent from the vtigercrm-developers mailing list archive at Nabble.com.
More information about the vtigercrm-developers
mailing list