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;