From f665980ef029a86462567df79a1199ca8f0582fa Mon Sep 17 00:00:00 2001 From: fhenry Date: Thu, 17 Jan 2013 18:03:10 +0100 Subject: [PATCH 1/2] Fix bug on update thirdpartty webservice --- htdocs/webservices/server_thirdparty.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/webservices/server_thirdparty.php b/htdocs/webservices/server_thirdparty.php index 1e3ee7cedca..49f303a7c1a 100755 --- a/htdocs/webservices/server_thirdparty.php +++ b/htdocs/webservices/server_thirdparty.php @@ -571,7 +571,7 @@ function updateThirdParty($authentication,$thirdparty) $db->begin(); - $result=$object->update($fuser); + $result=$object->update($thirdparty['id'],$fuser); if ($result <= 0) { $error++; } From 685400c20ede74a01469776b5428c54761e6052e Mon Sep 17 00:00:00 2001 From: fhenry Date: Thu, 17 Jan 2013 18:49:21 +0100 Subject: [PATCH 2/2] Fix bug on web service --- htdocs/webservices/server_actioncomm.php | 7 +++++-- htdocs/webservices/server_thirdparty.php | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/htdocs/webservices/server_actioncomm.php b/htdocs/webservices/server_actioncomm.php index 431974dd618..08d90357693 100644 --- a/htdocs/webservices/server_actioncomm.php +++ b/htdocs/webservices/server_actioncomm.php @@ -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) { diff --git a/htdocs/webservices/server_thirdparty.php b/htdocs/webservices/server_thirdparty.php index 5780895f764..6a4ef3d543b 100755 --- a/htdocs/webservices/server_thirdparty.php +++ b/htdocs/webservices/server_thirdparty.php @@ -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, @@ -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) {