Merge pull request #617 from FHenry/develop
Fix bug on update thirdpartty webservice
This commit is contained in:
commit
91f666bd90
@ -226,7 +226,7 @@ $server->register(
|
||||
// Entry values
|
||||
array('authentication'=>'tns:authentication','actioncomm'=>'tns:actioncomm'),
|
||||
// Exit values
|
||||
array('result'=>'tns:result'),
|
||||
array('result'=>'tns:result','id'=>'xsd:string'),
|
||||
$ns,
|
||||
$ns.'#updateActionComm',
|
||||
$styledoc,
|
||||
@ -563,7 +563,10 @@ function updateActionComm($authentication,$actioncomm)
|
||||
if ((! $error) && ($objectfound))
|
||||
{
|
||||
$db->commit();
|
||||
$objectresp=array('result'=>array('result_code'=>'OK', 'result_label'=>''));
|
||||
$objectresp=array(
|
||||
'result'=>array('result_code'=>'OK', 'result_label'=>''),
|
||||
'id'=>$object->id
|
||||
);
|
||||
}
|
||||
elseif ($objectfound)
|
||||
{
|
||||
|
||||
@ -233,7 +233,7 @@ $server->register(
|
||||
// Entry values
|
||||
array('authentication'=>'tns:authentication','thirdparty'=>'tns:thirdparty'),
|
||||
// Exit values
|
||||
array('result'=>'tns:result'),
|
||||
array('result'=>'tns:result','id'=>'xsd:string'),
|
||||
$ns,
|
||||
$ns.'#updateThirdParty',
|
||||
$styledoc,
|
||||
@ -571,7 +571,7 @@ function updateThirdParty($authentication,$thirdparty)
|
||||
|
||||
$db->begin();
|
||||
|
||||
$result=$object->update($fuser);
|
||||
$result=$object->update($thirdparty['id'],$fuser);
|
||||
if ($result <= 0) {
|
||||
$error++;
|
||||
}
|
||||
@ -580,7 +580,10 @@ function updateThirdParty($authentication,$thirdparty)
|
||||
if ((! $error) && ($objectfound))
|
||||
{
|
||||
$db->commit();
|
||||
$objectresp=array('result'=>array('result_code'=>'OK', 'result_label'=>''));
|
||||
$objectresp=array(
|
||||
'result'=>array('result_code'=>'OK', 'result_label'=>''),
|
||||
'id'=>$object->id
|
||||
);
|
||||
}
|
||||
elseif ($objectfound)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user