From e4b704f76d3b8d59d6f70db32cdc83d0002a64ed Mon Sep 17 00:00:00 2001 From: fhenry Date: Fri, 18 Jan 2013 11:10:56 +0100 Subject: [PATCH] Update web service --- htdocs/webservices/server_actioncomm.php | 4 ++-- htdocs/webservices/server_thirdparty.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/webservices/server_actioncomm.php b/htdocs/webservices/server_actioncomm.php index 08d90357693..e8b99464f99 100644 --- a/htdocs/webservices/server_actioncomm.php +++ b/htdocs/webservices/server_actioncomm.php @@ -545,11 +545,11 @@ function updateActionComm($authentication,$actioncomm) //Retreive all extrafield for actioncomm // fetch optionals attributes and labels $extrafields=new ExtraFields($db); - $extralabels=$extrafields->fetch_name_optionals_label('actioncomm'); + $extralabels=$extrafields->fetch_name_optionals_label('actioncomm',true); foreach($extrafields->attribute_label as $key=>$label) { $key='options_'.$key; - $newobject->array_options[$key]=$actioncomm[$key]; + $object->array_options[$key]=$actioncomm[$key]; } $db->begin(); diff --git a/htdocs/webservices/server_thirdparty.php b/htdocs/webservices/server_thirdparty.php index 6a4ef3d543b..16091ce90fb 100755 --- a/htdocs/webservices/server_thirdparty.php +++ b/htdocs/webservices/server_thirdparty.php @@ -562,7 +562,7 @@ function updateThirdParty($authentication,$thirdparty) //Retreive all extrafield for thirdsparty // fetch optionals attributes and labels $extrafields=new ExtraFields($db); - $extralabels=$extrafields->fetch_name_optionals_label('company'); + $extralabels=$extrafields->fetch_name_optionals_label('company',true); foreach($extrafields->attribute_label as $key=>$label) { $key='options_'.$key;