Update web service

This commit is contained in:
fhenry 2013-01-18 11:10:56 +01:00
parent 34c5343103
commit e4b704f76d
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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;