diff --git a/htdocs/webservices/server_invoice.php b/htdocs/webservices/server_invoice.php index c8c010ce8af..5987400ca7a 100755 --- a/htdocs/webservices/server_invoice.php +++ b/htdocs/webservices/server_invoice.php @@ -264,7 +264,7 @@ function getInvoice($authentication,$id,$ref,$ref_ext) // Create invoice $objectresp = array( - 'result'=>array('result_code'=>'', 'result_label'=>''), + 'result'=>array('result_code'=>'OK', 'result_label'=>''), 'invoice'=>array( 'id' => $invoice->id, 'ref' => $invoice->ref, @@ -388,7 +388,7 @@ function getInvoicesForThirdParty($authentication,$idthirdparty) } $objectresp=array( - 'result'=>array('result_code'=>'', 'result_label'=>''), + 'result'=>array('result_code'=>'OK', 'result_label'=>''), 'invoices'=>$linesinvoice ); diff --git a/htdocs/webservices/server_other.php b/htdocs/webservices/server_other.php index a2057a5b51a..3c03c8c78b6 100644 --- a/htdocs/webservices/server_other.php +++ b/htdocs/webservices/server_other.php @@ -114,7 +114,7 @@ function getVersions($authentication) if (! $error) { - $objectresp['result']=array('result_code'=>'', 'result_label'=>''); + $objectresp['result']=array('result_code'=>'OK', 'result_label'=>''); $objectresp['dolibarr']=version_dolibarr(); $objectresp['os']=version_os(); $objectresp['php']=version_php(); diff --git a/htdocs/webservices/server_thirdparty.php b/htdocs/webservices/server_thirdparty.php index e13bd79a7c1..3f71ba28e42 100755 --- a/htdocs/webservices/server_thirdparty.php +++ b/htdocs/webservices/server_thirdparty.php @@ -182,7 +182,7 @@ function getThirdParty($authentication,$id,$ref,$ref_ext) { // Create $objectresp = array( - 'result'=>array('result_code'=>'', 'result_label'=>''), + 'result'=>array('result_code'=>'OK', 'result_label'=>''), 'thirdparty'=>array( 'id' => $thirdparty->id, 'ref' => $thirdparty->name,